aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-05-14 15:53:42 +0000
committerBill Nottingham <notting@redhat.com>1999-05-14 15:53:42 +0000
commit777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6 (patch)
tree28027823b98ab097910024fea1a472b7599167dd /rc.d/init.d/network
parent28daca89004eef2c2634a4ba5b7f993c0d4079e2 (diff)
downloadinitscripts-777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6.tar
initscripts-777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6.tar.gz
initscripts-777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6.tar.bz2
initscripts-777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6.tar.xz
initscripts-777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6.zip
oops, xargs is on /usr/bin, can't use that.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 6 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 4efe0e12..c5fe794f 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -36,8 +36,12 @@ 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'`
+interfaces_boot=
+
+for inter in `ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep 'ifcfg-[a-z0-9]+$'`; do
+ int=`egrep -l "ONBOOT=[^n][^o]" $inter | sed 's/^ifcfg-//g'`
+ [ -n "$int" ] && interfaces_boot="$interfaces_boot $int"
+done
ipv4_forward_set ()
{