aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-12 21:03:36 +0000
committerBill Nottingham <notting@redhat.com>2005-01-12 21:03:36 +0000
commit90f5bdd87fd86d0263e3a5f12f6e817da9d772e6 (patch)
tree1ce2b4f5f29df883000662bf07faff810831866b /sysconfig/network-scripts/ifdown
parent1b0806da445a6fa2f0674303155ccff8ec1413f1 (diff)
downloadinitscripts-90f5bdd87fd86d0263e3a5f12f6e817da9d772e6.tar
initscripts-90f5bdd87fd86d0263e3a5f12f6e817da9d772e6.tar.gz
initscripts-90f5bdd87fd86d0263e3a5f12f6e817da9d772e6.tar.bz2
initscripts-90f5bdd87fd86d0263e3a5f12f6e817da9d772e6.tar.xz
initscripts-90f5bdd87fd86d0263e3a5f12f6e817da9d772e6.zip
fix various fgreps to not catch commented lines (#136531, expanded from <cww@redhat.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 14e34436..8d84f404 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -52,7 +52,7 @@ check_device_down ${DEVICE} && [ "$BOOTPROTO" != "dhcp" -a "$BOOTPROTO" != "boot
if [ -n "${HWADDR}" -a -z "${MACADDR}" ]; then
FOUNDMACADDR=`get_hwaddr ${REALDEVICE}`
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
- NEWCONFIG=`fgrep -il "HWADDR=${HWADDR}" /etc/sysconfig/network-scripts/ifcfg-*`
+ NEWCONFIG=`LANG=C grep -il "^[[:space:]]*HWADDR=${HWADDR}" /etc/sysconfig/network-scripts/ifcfg-*`
if [ -n "${NEWCONFIG}" -a "${NEWCONFIG}" != "${CONFIG}" ]; then
exec /sbin/ifdown ${NEWCONFIG}
else