aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2007-10-21 11:06:07 +0200
committerThomas Bächler <thomas@archlinux.org>2007-10-21 11:06:07 +0200
commit1b8636ed76e4bf5ef23c3b357e991c66e18714c5 (patch)
treee0805e83fd926e0ff24280f13a20d2e4f255465a /network
parentbc1b5289228e74641a61cff3bb8b3751713dcf54 (diff)
downloadinitscripts-1b8636ed76e4bf5ef23c3b357e991c66e18714c5.tar.xz
fixing second part of #6959
Diffstat (limited to 'network')
-rwxr-xr-xnetwork7
1 files changed, 3 insertions, 4 deletions
diff --git a/network b/network
index 52316ef..ba4bb7d 100755
--- a/network
+++ b/network
@@ -59,12 +59,11 @@ ifdown()
if [ "$ifcfg" = "dhcp" ]; then
if [ -f /var/run/dhcpcd-${1}.pid ]; then
kill $(cat /var/run/dhcpcd-${1}.pid)
- else
- # No .pid file, just bring the interface itself down
- /sbin/ifconfig ${1} down
fi
+ # Bring the interface itself down (in case it didn't happen above)
+ /sbin/ifconfig ${1} down >/dev/null 2>&1
else
- /sbin/ifconfig $ifcfg down
+ /sbin/ifconfig $ifcfg down >/dev/null 2>&1
fi
return $?
}