summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
commit10c7127d5ff693a8f0c9671b9d3253315f2095be (patch)
tree07cc635750c86f96e3544f47deebdfd9bb50dcb7 /network
parent9e13f3aecd7c8c716929be9d9faf8725e3065a0e (diff)
parent86b2cb99028d81a6cb608f09e1a31bc7744a991c (diff)
Merge branch 'master' of git://projects.archlinux.org/initscripts2012.05.2
Conflicts: Makefile
Diffstat (limited to 'network')
-rwxr-xr-xnetwork8
1 files changed, 4 insertions, 4 deletions
diff --git a/network b/network
index d22b5dd..322082c 100755
--- a/network
+++ b/network
@@ -19,7 +19,7 @@ need_legacy() {
deprecated() {
printf "${C_FAIL}Warning:${C_CLEAR} Your network settings are deprecated.\n"
- printf " Please refer to /etc/rc.conf on how to define a single wired\n"
+ printf " Please refer to 'man 5 rc.conf' on how to define a single wired\n"
printf " connection, or use a utility such as netcfg.\n"
}
@@ -52,7 +52,7 @@ network_down() {
have_interface "$interface" || return 1
if [[ -f /run/dhcpcd-$interface.pid ]]; then
- dhcpcd -k $interface || return 1
+ dhcpcd -qk $interface || return 1
else
ip addr flush dev $interface || return 1
fi
@@ -260,7 +260,7 @@ case "$1" in
else
network_up
fi
- if ((error == 0)); then
+ if (( ! error )); then
add_daemon network
stat_done
else
@@ -296,7 +296,7 @@ case "$1" in
else
network_down
fi
- if ((error == 0)); then
+ if (( ! error )); then
stat_done
else
stat_fail