From 777e9ec8779ba4ad76bae33ab9fdfdd5044a1cf6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 14 May 1999 15:53:42 +0000 Subject: oops, xargs is on /usr/bin, can't use that. --- rc.d/init.d/network | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d/network') 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 () { -- cgit v1.2.1