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/network-functions | |
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/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 8a03134a..9715d8d1 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -22,14 +22,14 @@ get_hwaddr () get_config_by_device () { - LANG=C grep -l "^[[:space:]]*DEVICE=\"\?${1}\"\?\([[:space:]#]\|$\)" \ + LANG=C grep -l "^[[:space:]]*DEVICE=['\"]\?${1}['\"]\?\([[:space:]#]\|$\)" \ /etc/sysconfig/network-scripts/ifcfg-* \ | LC_ALL=C sed -e "$__sed_discard_ignored_files" } get_config_by_hwaddr () { - LANG=C grep -il "^[[:space:]]*HWADDR=\"\?${1}\"\?\([[:space:]#]\|$\)" /etc/sysconfig/network-scripts/ifcfg-* \ + LANG=C grep -il "^[[:space:]]*HWADDR=['\"]\?${1}['\"]\?\([[:space:]#]\|$\)" /etc/sysconfig/network-scripts/ifcfg-* \ | LC_ALL=C sed -e "$__sed_discard_ignored_files" } |