From 3854ccb0f175bbedeefb389d373d108110ca41e8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 9 Aug 2001 06:03:55 +0000 Subject: still run ifdown for dhcp devices, even if the device isn't there --- sysconfig/network-scripts/ifdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') 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} | \ -- cgit v1.2.1