From d4823bb3fca3de35ff3fb5201fc9dc64510859ba Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 27 Jul 2004 16:19:57 +0000 Subject: don't bring interfaces down twice (#127487) --- rc.d/init.d/network | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 0581e386..3dbaaf50 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -201,6 +201,7 @@ case "$1" in cipeinterfaces="" xdslinterfaces="" bridgeinterfaces="" + remaining="" # get list of bonding, cipe, and xdsl interfaces for i in $interfaces; do @@ -231,6 +232,7 @@ case "$1" in unset DEVICE TYPE SLAVE BRIDGE continue fi + remaining="$remaining $i" unset DEVICE TYPE BRIDGE done @@ -244,7 +246,7 @@ case "$1" in done # shut down all interfaces (other than loopback) - for i in $interfaces ; do + for i in $remaining ; do eval $(fgrep "DEVICE=" ifcfg-$i) if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi -- cgit v1.2.1