diff options
author | Bill Nottingham <notting@redhat.com> | 2011-01-12 12:18:13 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-01-12 12:19:43 -0500 |
commit | abd88b50196806ef92f3daadd277420190c2d955 (patch) | |
tree | a06343f2f01c9932745a9db88e5c6a4841b7868c | |
parent | 019b62036ebde6700dae7f41588020c11d7ff765 (diff) | |
download | initscripts-abd88b50196806ef92f3daadd277420190c2d955.tar initscripts-abd88b50196806ef92f3daadd277420190c2d955.tar.gz initscripts-abd88b50196806ef92f3daadd277420190c2d955.tar.bz2 initscripts-abd88b50196806ef92f3daadd277420190c2d955.tar.xz initscripts-abd88b50196806ef92f3daadd277420190c2d955.zip |
Handle 'MASTER' being quoted. (#651450, <gfidente@redhat.com>)
-rwxr-xr-x | sysconfig/network-scripts/ifdown-eth | 2 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index 19fc1f12..530975c3 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -53,7 +53,7 @@ fi fi if is_bonding_device ${DEVICE} ; then - for device in $(LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*) ; do + for device in $(LANG=C egrep -l "^[[:space:]]*MASTER=\"?${DEVICE}\"?" /etc/sysconfig/network-scripts/ifcfg-*) ; do is_ignored_file "$device" && continue /sbin/ifdown ${device##*/} done diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 7d165ca5..9377494c 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -129,7 +129,7 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then /sbin/ip link set dev ${DEVICE} up [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} - for device in $(LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*) ; do + for device in $(LANG=C egrep -l "^[[:space:]]*MASTER=\"?${DEVICE}\"?" /etc/sysconfig/network-scripts/ifcfg-*) ; do is_ignored_file "$device" && continue /sbin/ifup ${device##*/} done |