]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Fix double link down (qboosh).
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 31 Oct 2003 09:00:14 +0000 (09:00 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 31 Oct 2003 09:00:14 +0000 (09:00 +0000)
svn-id: @1475

sysconfig/network-scripts/ifdown

index 9fcc0d431640f4761971a9f5c54365bc4cfa118d..96c71a7b4ff656d95dead52b3c0b665bc18d6631 100755 (executable)
@@ -91,13 +91,13 @@ fi
 vlan_setup
 if is_yes $ETH_VLANS && `echo $DEVICE | grep -q ^eth` ; then
     if echo "${DEVICE}" | grep -q '\.' ; then
-       ip link set ${DEVICE} down
+       # vlan down
        ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
        ip link set ${DEVICE} down
        /sbin/vconfig rem ${DEVICE} 2>&1 > /dev/null
     else
        # downujemy interfejs nadrzedny do vlanow
-       for VLANDEVICE in `ls /proc/net/vlan | grep ^${DEVICE}` ; do
+       for VLANDEVICE in `ls /proc/net/vlan 2> /dev/null | grep ^${DEVICE}` ; do
            # najpierw wszystkie vlany po kolei
            ip addr flush dev ${VLANDEVICE} 2>&1 | grep -v "Nothing to flush"
            ip link set ${VLANDEVICE} down
This page took 0.8164 seconds and 4 git commands to generate.