diff options
author | Bill Nottingham <notting@redhat.com> | 2000-04-10 14:55:52 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-04-10 14:55:52 +0000 |
commit | 05b75af9bf59f2be08a7a8653b68aa5dc4e1efba (patch) | |
tree | 98c853e2cc33a93471496693607dafa558d340d0 /rc.d | |
parent | 2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698 (diff) | |
download | initscripts-05b75af9bf59f2be08a7a8653b68aa5dc4e1efba.tar initscripts-05b75af9bf59f2be08a7a8653b68aa5dc4e1efba.tar.gz initscripts-05b75af9bf59f2be08a7a8653b68aa5dc4e1efba.tar.bz2 initscripts-05b75af9bf59f2be08a7a8653b68aa5dc4e1efba.tar.xz initscripts-05b75af9bf59f2be08a7a8653b68aa5dc4e1efba.zip |
don't bring up commented out 'ONBOOT' interfaces ; don't shut down inactive interfaces
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/network | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 8f486277..ffd49236 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -58,7 +58,7 @@ case "$1" in esac for i in $interfaces; do - if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null ; then + if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i | grep -v "^#" >/dev/null ; then # Probe module to preserve interface ordering /sbin/ifconfig $i >/dev/null 2>&1 else @@ -90,7 +90,9 @@ case "$1" in fi for i in $interfaces ; do - action "Shutting down interface $i" ./ifdown $i boot + if ifconfig $i | grep -q "UP" >/dev/null 2>&1 ; then + action "Shutting down interface $i" ./ifdown $i boot + fi done case "$IPX" in yes|true) |