aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown8
1 files changed, 4 insertions, 4 deletions
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...