From 9a89c6d693c914f6cec6e18b86b4f18edd089829 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Jul 2001 21:08:20 +0000 Subject: - only bring link down if check_link_down fails - add a sleep in check_link_down; some cards take time to negotiate - only expand_config for the static IP case in ifdown --- sysconfig/network-scripts/ifdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sysconfig/network-scripts/ifdown') diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 3ccf4547..8a80161a 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -52,8 +52,6 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then /etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG} fi -expand_config - retcode=0 if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then [ -n "`pidof -x dhcpcd`" ] && { @@ -65,6 +63,7 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then retcode=$? } else + expand_config ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${DEVICE} fi -- cgit v1.2.1