summaryrefslogtreecommitdiffstats
path: root/scripts/ifplugd.action
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-03-01 01:33:12 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-03-01 01:35:58 +0100
commiteed3f590c9db7cd9cd4d5fb4722fc7257a278ea6 (patch)
treed34406a8af61dccbb9655b899da30d04ce61a623 /scripts/ifplugd.action
parent8d1c5e8ec6b637015e84bbb154ece9065c59f1c5 (diff)
downloadnetctl-eed3f590c9db7cd9cd4d5fb4722fc7257a278ea6.tar.gz
netctl-eed3f590c9db7cd9cd4d5fb4722fc7257a278ea6.tar.xz
Code quality upgrade
This is what you get when Dave Reisner points you at some bash anti-patterns. Also in this commit: - updated documentation - bugfix revision of the IPv6 SLAAC address/route bug
Diffstat (limited to 'scripts/ifplugd.action')
-rw-r--r--scripts/ifplugd.action8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/ifplugd.action b/scripts/ifplugd.action
index 602e61a..573131d 100644
--- a/scripts/ifplugd.action
+++ b/scripts/ifplugd.action
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# ifplugd.action script for netcfg
+# ifplugd.action script for netcfg
. /etc/rc.conf
. /etc/rc.d/functions
@@ -10,8 +10,8 @@ shopt -s extglob
case "$2" in
up)
# Look for a dhcp based profile to try first
- # dhcp can actually outright fail, whereas
- # it's difficult to tell if static succeeded
+ # dhcp can actually outright fail, whereas
+ # it's difficult to tell if static succeeded
# Also check profile is same iface and is right connection
echo "up"
declare -a preferred_profiles
@@ -49,6 +49,6 @@ case "$2" in
*)
echo "Wrong arguments" > /dev/stderr
;;
-esac
+esac
exit 1