diff options
author | Bill Nottingham <notting@redhat.com> | 2000-01-31 20:02:32 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-01-31 20:02:32 +0000 |
commit | aa484d35318c8c5c8613c4a7135cb0249b840c76 (patch) | |
tree | 6297a0bf31ff1aff1be37c5b8b22ae2232397366 /rc.d/init.d/network | |
parent | c01e01264b5475d8545239ac11015229e2e4db30 (diff) | |
download | initscripts-aa484d35318c8c5c8613c4a7135cb0249b840c76.tar initscripts-aa484d35318c8c5c8613c4a7135cb0249b840c76.tar.gz initscripts-aa484d35318c8c5c8613c4a7135cb0249b840c76.tar.bz2 initscripts-aa484d35318c8c5c8613c4a7135cb0249b840c76.tar.xz initscripts-aa484d35318c8c5c8613c4a7135cb0249b840c76.zip |
fix logic of boot-time interfaces somewhat
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 5a692d61..6dbeb116 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -36,11 +36,10 @@ cd /etc/sysconfig/network-scripts # ignore aliases, alternative configurations, and editor backup files interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep 'ifcfg-[a-z0-9]+$' | \ sed 's/^ifcfg-//g'` -interfaces_boot= -for inter in `ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep 'ifcfg-[a-z0-9]+$'`; do - int=`egrep -L "ONBOOT=\"?[Nn][Oo]\"?" $inter | sed 's/^ifcfg-//g'` - [ -n "$int" ] && interfaces_boot="$interfaces_boot $int" +interfaces_boot= +for inter in interfaces ; do + egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$inter >/dev/null || interfaces_boot="$interfaces_boot $inter" done # See how we were called. @@ -59,8 +58,14 @@ case "$1" in ;; esac - for i in $interfaces_boot; do - action "Bringing up interface $i" ./ifup $i boot + for i in $interfaces; do + if $i in $interfaces_boot ; then + action "Bringing up interface $i" ./ifup $i boot + else + # Do this so the module loads, so the interface + # gets registered + ./ifup $i boot + fi done # Add non interface-specific static-routes. |