summaryrefslogtreecommitdiff
path: root/net.Linux/udhcpc.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-28 15:45:03 +0000
committerRoy Marples <roy@marples.name>2007-11-28 15:45:03 +0000
commitac9279cc0d5a00bc17908b2914941186020cd3ce (patch)
tree850a4fe19917113e75bfd2e79d00b58208468503 /net.Linux/udhcpc.sh
parent444f23e2d158389b22d40537fc9b027d9f575229 (diff)
downloadopenrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.gz
openrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.bz2
openrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.xz
Massive whitespace cleanup
Diffstat (limited to 'net.Linux/udhcpc.sh')
-rw-r--r--net.Linux/udhcpc.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/net.Linux/udhcpc.sh b/net.Linux/udhcpc.sh
index bded5bb..2e887b6 100644
--- a/net.Linux/udhcpc.sh
+++ b/net.Linux/udhcpc.sh
@@ -42,11 +42,11 @@ udhcpc_start() {
[ -z "${opts}" ] && opts=${dhcp}
# Map some generic options to dhcpcd
- for opt in ${opts} ; do
+ for opt in ${opts}; do
case "${opt}" in
- nodns) args="${args} --env PEER_DNS=no" ;;
- nontp) args="${args} --env PEER_NTP=no" ;;
- nogateway) args="${args} --env PEER_ROUTERS=no" ;;
+ nodns) args="${args} --env PEER_DNS=no";;
+ nontp) args="${args} --env PEER_NTP=no";;
+ nogateway) args="${args} --env PEER_ROUTERS=no";;
nosendhost) sendhost=false;
esac
done
@@ -58,27 +58,27 @@ udhcpc_start() {
# Try and load the cache if it exists
if [ -f "${cachefile}" ]; then
case "$ {args} " in
- *" --request="*|*" -r "*) ;;
+ *" --request="*|*" -r "*);;
*)
local x=$(cat "${cachefile}")
# Check for a valid ip
case "${x}" in
- *.*.*.*) args="${args} --request=${x}" ;;
+ *.*.*.*) args="${args} --request=${x}";;
esac
;;
esac
fi
case " ${args} " in
- *" --quit "*|*" -q "*) x="/sbin/udhcpc" ;;
+ *" --quit "*|*" -q "*) x="/sbin/udhcpc";;
*) x="start-stop-daemon --start --exec /sbin/udhcpc \
- --pidfile \"${pidfile}\" --" ;;
+ --pidfile \"${pidfile}\" --";;
esac
case " ${args} " in
- *" --hosname="*|*" -h "*|*" -H "*) ;;
+ *" --hosname="*|*" -h "*|*" -H "*);;
*)
- if ${sendhost} ; then
+ if ${sendhost}; then
local hname="$(hostname)"
if [ "${hname}" != "(none)" ] && [ "${hname}" != "localhost" ]; then
args="${args} --hostname='${hname}'"
@@ -112,7 +112,7 @@ udhcpc_stop() {
*" release "*)
start-stop-daemon --stop --quiet --oknodo --signal USR2 \
--exec /sbin/udhcpc --pidfile "${pidfile}"
- if [ -f /var/cache/udhcpc-"${IFACE}".lease ] ; then
+ if [ -f /var/cache/udhcpc-"${IFACE}".lease ]; then
rm -f /var/cache/udhcpc-"${IFACE}".lease
fi
;;