aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-07-26 03:41:28 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-07-26 03:41:28 +0000
commit8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df (patch)
treed3c012182582201425783234b6c85c8250fcb642 /sysconfig
parentd4a318ddb703bccf495c75a05af9e5376a6de46e (diff)
downloadinitscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar
initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.gz
initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.bz2
initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.tar.xz
initscripts-8fc2ecb75e71eaf6ce34332ba2d1a27f06fa81df.zip
Simplify the regexp a little
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions2
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 ()