aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorPreston Brown <pbrown@redhat.com>2001-05-11 16:31:58 +0000
committerPreston Brown <pbrown@redhat.com>2001-05-11 16:31:58 +0000
commiteb78e9a04105a9787dc24b55ea9e98b50288f2d3 (patch)
tree459f661e119a0df70edeebf34120032e2e6705a8 /sysconfig/network-scripts/ifdown
parentca2b7522ecfd789aae2c53dec9494a3b4efa049a (diff)
downloadinitscripts-eb78e9a04105a9787dc24b55ea9e98b50288f2d3.tar
initscripts-eb78e9a04105a9787dc24b55ea9e98b50288f2d3.tar.gz
initscripts-eb78e9a04105a9787dc24b55ea9e98b50288f2d3.tar.bz2
initscripts-eb78e9a04105a9787dc24b55ea9e98b50288f2d3.tar.xz
initscripts-eb78e9a04105a9787dc24b55ea9e98b50288f2d3.zip
switch from ifconfig to ip command.
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...