aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-12 21:01:15 +0000
committerBill Nottingham <notting@redhat.com>2005-01-12 21:01:15 +0000
commit3520e4d042f05895a986fb61d03869b3f31d0d4c (patch)
tree170c7a62f9dcb02b5c30c1a92ec79be3ef61cf06 /sysconfig/network-scripts/ifdown
parentb3fa00bf7b302ee5bcc76e7864753c924c1aecb7 (diff)
downloadinitscripts-3520e4d042f05895a986fb61d03869b3f31d0d4c.tar
initscripts-3520e4d042f05895a986fb61d03869b3f31d0d4c.tar.gz
initscripts-3520e4d042f05895a986fb61d03869b3f31d0d4c.tar.bz2
initscripts-3520e4d042f05895a986fb61d03869b3f31d0d4c.tar.xz
initscripts-3520e4d042f05895a986fb61d03869b3f31d0d4c.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 db70f066..88c9a9cf 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -61,7 +61,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