aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2008-11-10 18:51:01 +0100
committerBill Nottingham <notting@redhat.com>2008-11-11 11:43:15 -0500
commit1b266ddb45ba4a5b5ba92f09f010c3592f28ae95 (patch)
tree053acfe05de8cb2d3ad809f2892c826016109056 /sysconfig/network-scripts/network-functions
parentdc6f9db8bdf6292ca303369d2f5bc2398fb2610f (diff)
downloadinitscripts-1b266ddb45ba4a5b5ba92f09f010c3592f28ae95.tar
initscripts-1b266ddb45ba4a5b5ba92f09f010c3592f28ae95.tar.gz
initscripts-1b266ddb45ba4a5b5ba92f09f010c3592f28ae95.tar.bz2
initscripts-1b266ddb45ba4a5b5ba92f09f010c3592f28ae95.tar.xz
initscripts-1b266ddb45ba4a5b5ba92f09f010c3592f28ae95.zip
fixed bug #459044
refined the grep statement
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-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 24153485..90eaf740 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -28,7 +28,7 @@ get_config_by_hwaddr ()
get_config_by_subchannel ()
{
- LANG=C grep -il "^[[:space:]]*SUBCHANNELS=${1}\([[:space:]#]\|$\|,\)" /etc/sysconfig/network-scripts/ifcfg-* \
+ LANG=C egrep -l "^[[:space:]]*SUBCHANNELS=([0-9]+,){0,2}${1}(,[0-9]+){0,2}([[:space:]]+#|[[:space:]]*$)" /etc/sysconfig/network-scripts/ifcfg-* \
| LC_ALL=C sed -e "$__sed_discard_ignored_files"
}