diff options
author | Bill Nottingham <notting@redhat.com> | 2004-07-27 16:19:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-07-27 16:19:57 +0000 |
commit | d4823bb3fca3de35ff3fb5201fc9dc64510859ba (patch) | |
tree | a0f2b7f91f4b474b23e01d7ef6a652e690f9c83f /rc.d/init.d/network | |
parent | 899f746493e5043456e0da063763829b50f7bc9c (diff) | |
download | initscripts-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/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 4 |
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 |