aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-01 21:49:38 +0000
committerBill Nottingham <notting@redhat.com>1999-04-01 21:49:38 +0000
commitffa38e5c3af046d9c580df3b2550d60bf819d23e (patch)
tree0aa0d1be414a38b29fa5511ad71321c6669461d0 /rc.d/init.d/network
parentfbaca56e98e16cd65cff6b524371b662072388b2 (diff)
downloadinitscripts-ffa38e5c3af046d9c580df3b2550d60bf819d23e.tar
initscripts-ffa38e5c3af046d9c580df3b2550d60bf819d23e.tar.gz
initscripts-ffa38e5c3af046d9c580df3b2550d60bf819d23e.tar.bz2
initscripts-ffa38e5c3af046d9c580df3b2550d60bf819d23e.tar.xz
initscripts-ffa38e5c3af046d9c580df3b2550d60bf819d23e.zip
only bring up/shut down boot devices
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network6
1 files changed, 4 insertions, 2 deletions
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