From a3761f9b1480fb6bcd6710600c0056cef721ebcc Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 8 Mar 2000 16:20:36 +0000 Subject: check that a device is up before bringing it down --- sysconfig/network-scripts/ifdown | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysconfig/network-scripts/ifdown') diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 5018e708..a00c8949 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -36,6 +36,9 @@ if [ -x $OTHERSCRIPT ]; then exec $OTHERSCRIPT $CONFIG $2 fi +# Check to make sure the device is actually up +check_device_down && exit 0 + if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then pump -r -i ${DEVICE} fi -- cgit v1.2.1