diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-07-26 03:41:28 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-07-26 03:41:28 +0000 |
commit | 8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df (patch) | |
tree | d3c012182582201425783234b6c85c8250fcb642 | |
parent | d4a318ddb703bccf495c75a05af9e5376a6de46e (diff) | |
download | initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.gz initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.bz2 initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.xz initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.zip |
Simplify the regexp a little
-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 bfa4b184..3a333147 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -20,7 +20,7 @@ get_hwaddr () 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-* } get_device_by_hwaddr () |