diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-10-27 10:12:19 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-10-27 10:12:19 +0100 |
commit | 6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e (patch) | |
tree | a188a6340e988186f78150d8eb9eb335c9d7b0cd /sysconfig/network-scripts/ifdown-eth | |
parent | 0f5fb4820a5173934a4d7c98d88037ccad21f3f1 (diff) | |
download | initscripts-6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e.tar initscripts-6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e.tar.gz initscripts-6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e.tar.bz2 initscripts-6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e.tar.xz initscripts-6b3a75f3e5da0a23fc0dcd5facd81b7b8f2f687e.zip |
network-scripts: DEVICE and HWADRR could be quoted by apostrophe
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index fb2d291c..e163c8e5 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -57,7 +57,7 @@ fi fi if is_bonding_device ${DEVICE} ; then - for device in $(LANG=C grep -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/ifdown ${device##*/} done |