diff options
author | Thomas Bächler <thomas@archlinux.org> | 2007-10-21 11:06:07 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2007-10-21 11:06:07 +0200 |
commit | 1b8636ed76e4bf5ef23c3b357e991c66e18714c5 (patch) | |
tree | e0805e83fd926e0ff24280f13a20d2e4f255465a /network | |
parent | bc1b5289228e74641a61cff3bb8b3751713dcf54 (diff) |
fixing second part of #6959
Diffstat (limited to 'network')
-rwxr-xr-x | network | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 $? } |