diff options
author | Bill Nottingham <notting@redhat.com> | 2012-06-26 10:48:04 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2012-06-26 10:48:04 -0400 |
commit | 69ead9bb4b8ec2e45dca84b9904bc04b03666c46 (patch) | |
tree | 485c3056d5839cbc2df9b7eb00e34ee9b8a4bb4c /sysconfig/network-scripts | |
parent | a30ffbf128e7f63ee1375efea459c99ce13f0c4c (diff) | |
download | initscripts-69ead9bb4b8ec2e45dca84b9904bc04b03666c46.tar initscripts-69ead9bb4b8ec2e45dca84b9904bc04b03666c46.tar.gz initscripts-69ead9bb4b8ec2e45dca84b9904bc04b03666c46.tar.bz2 initscripts-69ead9bb4b8ec2e45dca84b9904bc04b03666c46.tar.xz initscripts-69ead9bb4b8ec2e45dca84b9904bc04b03666c46.zip |
Handle (improper) quoted HWADDR (#835372)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 818a985d..81e47a20 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -29,7 +29,7 @@ get_config_by_device () 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" } |