diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-06 15:03:49 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-06 15:03:49 -0300 |
commit | 10c7127d5ff693a8f0c9671b9d3253315f2095be (patch) | |
tree | 07cc635750c86f96e3544f47deebdfd9bb50dcb7 /network | |
parent | 9e13f3aecd7c8c716929be9d9faf8725e3065a0e (diff) | |
parent | 86b2cb99028d81a6cb608f09e1a31bc7744a991c (diff) |
Merge branch 'master' of git://projects.archlinux.org/initscripts2012.05.2
Conflicts:
Makefile
Diffstat (limited to 'network')
-rwxr-xr-x | network | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |