From ffa38e5c3af046d9c580df3b2550d60bf819d23e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 1 Apr 1999 21:49:38 +0000 Subject: only bring up/shut down boot devices --- rc.d/init.d/network | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index fa67df29..e413b3c2 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -35,6 +35,8 @@ 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=`ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep 'ifcfg-[a-z0-9]+$' | \ + xargs egrep -l "ONBOOT=[^n][^o]" | sed 's/^ifcfg-//g'` ipv4_forward_set () { @@ -80,14 +82,14 @@ case "$1" in ;; esac - for i in $interfaces; do + for i in $interfaces_boot; do action "Bringing up interface $i" ./ifup $i boot done touch /var/lock/subsys/network ;; stop) - for i in $interfaces; do + for i in $interfaces_boot; do action "Shutting down interface $i" ./ifdown $i boot done case "$IPX" in -- cgit v1.2.1