diff options
author | Bill Nottingham <notting@redhat.com> | 2002-08-27 22:03:06 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-08-27 22:03:06 +0000 |
commit | 65abe864375d014f69ed53d1e1fc4ec3e9f7a321 (patch) | |
tree | 282e365873050f962d7cc855dcc4a735eb2efb40 /sysconfig/network-scripts/ifdown | |
parent | 81fe8138bf5362c4fc2824c712edc5014ddffd77 (diff) | |
download | initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.gz initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.bz2 initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.tar.xz initscripts-65abe864375d014f69ed53d1e1fc4ec3e9f7a321.zip |
don't loop on ifdown
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 2 |
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." |