]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
(network stop): avoid error messages when flushing unconfigured interfaces
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 23 Oct 2000 22:10:59 +0000 (22:10 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 23 Oct 2000 22:10:59 +0000 (22:10 +0000)
svn-id: @813

rc.d/init.d/network

index a1922e09f81b3dba0d65a9dba7519cdb81641843..c68eeaf4a4725dd14489fc7b82f02a1bfa404026 100644 (file)
@@ -8,7 +8,7 @@
 #
 # probe:       true
 
-# $Id: network,v 1.34.2.2 2000/10/22 09:59:16 misiek Exp $
+# $Id: network,v 1.34.2.3 2000/10/23 22:10:59 misiek Exp $
 
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
@@ -179,7 +179,7 @@ case "$1" in
 
        for i in $(ip link show | awk -F":" ' (/UP/) && ($2 !~ "lo") { print $2; } ') ; do
                show "Shutting down unconfigured interface %s" "$i"
-               ip addr flush dev $i | grep -v "Nothing to flush"
+               ip addr flush dev $i 2>&1 | grep -v "Nothing to flush"
                if (ip link set $i down); then ok; else fail; fi
        done
 
This page took 0.052681 seconds and 4 git commands to generate.