aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-02-26 16:57:05 +0100
committerLukas Nykryn <lnykryn@redhat.com>2013-02-26 16:57:05 +0100
commit08ae592f83dfa9c6e83d42f0d6e20543c253a685 (patch)
treeb7998d5f25fdd3a34fa686afd6d4e17aee201484 /sysconfig/network-scripts/ifup-eth
parent56f31196ccdcb79fc105b2ada4078e05f5c5b3fb (diff)
downloadinitscripts-08ae592f83dfa9c6e83d42f0d6e20543c253a685.tar
initscripts-08ae592f83dfa9c6e83d42f0d6e20543c253a685.tar.gz
initscripts-08ae592f83dfa9c6e83d42f0d6e20543c253a685.tar.bz2
initscripts-08ae592f83dfa9c6e83d42f0d6e20543c253a685.tar.xz
initscripts-08ae592f83dfa9c6e83d42f0d6e20543c253a685.zip
Fix greps to correctly handle comments and quotation
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index a7add8a9..56169eca 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -114,7 +114,7 @@ fi
# so it can actually get an IP.
if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then
install_bonding_driver ${DEVICE}
- for device in $(LANG=C egrep -l "^[[:space:]]*MASTER=\"?${DEVICE}\"?[[:space:]]*$" /etc/sysconfig/network-scripts/ifcfg-*) ; do
+ for device in $(LANG=C grep -l "^[[:space:]]*MASTER=\"\?${DEVICE}\"\?\([[:space:]#]\|$\)" /etc/sysconfig/network-scripts/ifcfg-*) ; do
is_ignored_file "$device" && continue
/sbin/ifup ${device##*/}
done