From 1b8636ed76e4bf5ef23c3b357e991c66e18714c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Sun, 21 Oct 2007 11:06:07 +0200 Subject: fixing second part of #6959 --- network | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'network') 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 $? } -- cgit v1.2.3