aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ()
{