From eb78e9a04105a9787dc24b55ea9e98b50288f2d3 Mon Sep 17 00:00:00 2001 From: Preston Brown Date: Fri, 11 May 2001 16:31:58 +0000 Subject: switch from ifconfig to ip command. --- sysconfig/network-scripts/ifdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysconfig/network-scripts/ifdown') diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index f8070dba..db07e35a 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -44,13 +44,13 @@ fi . /etc/sysconfig/network +# Check to make sure the device is actually up +check_device_down ${DEVICE} && exit 0 + if [ "${NETWORKING_IPV6}" = "yes" ]; then /etc/sysconfig/network-scripts/ifdown-ipv6 $DEVICE fi -# Check to make sure the device is actually up -check_device_down && exit 0 - retcode=0 if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then [ -n "`pidof -x pump`" ] && { @@ -64,7 +64,7 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then fi -ifconfig ${DEVICE} down +ip link set ${DEVICE} down [ "$retcode" = "0" ] && retcode=$? # wait up to 5 seconds for device to actually come down... -- cgit v1.2.1