diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-02-26 16:57:05 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-03-07 15:07:20 +0100 |
commit | 740589f809e39647da417d976c2fed2ad75ce1dd (patch) | |
tree | 9d37630545d0e846548750ec52a907e31359b350 /sysconfig/network-scripts/ifup-eth | |
parent | 984350346c9f075ee135e4c487b91bf818c185e8 (diff) | |
download | initscripts-740589f809e39647da417d976c2fed2ad75ce1dd.tar initscripts-740589f809e39647da417d976c2fed2ad75ce1dd.tar.gz initscripts-740589f809e39647da417d976c2fed2ad75ce1dd.tar.bz2 initscripts-740589f809e39647da417d976c2fed2ad75ce1dd.tar.xz initscripts-740589f809e39647da417d976c2fed2ad75ce1dd.zip |
Fix greps to correctly handle comments and quotation (#915659)
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index be225c85..f14f854d 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -119,7 +119,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 |