aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-07-27 16:19:57 +0000
committerBill Nottingham <notting@redhat.com>2004-07-27 16:19:57 +0000
commitd4823bb3fca3de35ff3fb5201fc9dc64510859ba (patch)
treea0f2b7f91f4b474b23e01d7ef6a652e690f9c83f /rc.d
parent899f746493e5043456e0da063763829b50f7bc9c (diff)
downloadinitscripts-d4823bb3fca3de35ff3fb5201fc9dc64510859ba.tar
initscripts-d4823bb3fca3de35ff3fb5201fc9dc64510859ba.tar.gz
initscripts-d4823bb3fca3de35ff3fb5201fc9dc64510859ba.tar.bz2
initscripts-d4823bb3fca3de35ff3fb5201fc9dc64510859ba.tar.xz
initscripts-d4823bb3fca3de35ff3fb5201fc9dc64510859ba.zip
don't bring interfaces down twice (#127487)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network4
1 files changed, 3 insertions, 1 deletions
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