aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-09 06:03:55 +0000
committerBill Nottingham <notting@redhat.com>2001-08-09 06:03:55 +0000
commit3854ccb0f175bbedeefb389d373d108110ca41e8 (patch)
treee71abfa8214c97f90b649239ebe268631ae92fba /sysconfig/network-scripts
parentb7801a7e92dc7fce2d4b4a2b502b3e9ac40e3ed3 (diff)
downloadinitscripts-3854ccb0f175bbedeefb389d373d108110ca41e8.tar
initscripts-3854ccb0f175bbedeefb389d373d108110ca41e8.tar.gz
initscripts-3854ccb0f175bbedeefb389d373d108110ca41e8.tar.bz2
initscripts-3854ccb0f175bbedeefb389d373d108110ca41e8.tar.xz
initscripts-3854ccb0f175bbedeefb389d373d108110ca41e8.zip
still run ifdown for dhcp devices, even if the device isn't there
Diffstat (limited to 'sysconfig/network-scripts')
-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 69ea3670..c8c8b590 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -46,7 +46,7 @@ fi
. /etc/sysconfig/network
# Check to make sure the device is actually up
-check_device_down ${DEVICE} && exit 0
+check_device_down ${DEVICE} && [ "$BOOTPROTO" != "dhcp" -a "$BOOTPROTO" != "bootp" ] && exit 0
if [ -n "${HWADDR}" ]; then
FOUNDMACADDR=`LC_ALL= LANG= ip -o link show ${REALDEVICE} | \