aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-08-27 22:03:06 +0000
committerBill Nottingham <notting@redhat.com>2002-08-27 22:03:06 +0000
commit65abe864375d014f69ed53d1e1fc4ec3e9f7a321 (patch)
tree282e365873050f962d7cc855dcc4a735eb2efb40
parent81fe8138bf5362c4fc2824c712edc5014ddffd77 (diff)
downloadinitscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar
initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.gz
initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.bz2
initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.xz
initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.zip
don't loop on 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 cc0ad636..992fd5ae 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -53,7 +53,7 @@ if [ -n "${HWADDR}" ]; then
sed 's/.*link\/ether \([[:alnum:]:]*\).*/\1/'`
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
NEWCONFIG=`fgrep -l "HWADDR=${HWADDR}" /etc/sysconfig/network-scripts/ifcfg-*`
- if [ -n "${NEWCONFIG}" ]; then
+ if [ -n "${NEWCONFIG}" -a "${NEWCONFIG}" != "${CONFIG}" ]; then
exec /sbin/ifdown ${NEWCONFIG}
else
echo $"Device ${DEVICE} has different MAC address than expected, ignoring."