aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-26 21:08:20 +0000
committerBill Nottingham <notting@redhat.com>2001-07-26 21:08:20 +0000
commit9a89c6d693c914f6cec6e18b86b4f18edd089829 (patch)
tree946ee1b653513dc1a58409f406ea64ba1b4b8f4d /sysconfig/network-scripts/ifdown
parentc8a973a3fd0e3a6c24bdf07adb0d70abbabb5a6a (diff)
downloadinitscripts-9a89c6d693c914f6cec6e18b86b4f18edd089829.tar
initscripts-9a89c6d693c914f6cec6e18b86b4f18edd089829.tar.gz
initscripts-9a89c6d693c914f6cec6e18b86b4f18edd089829.tar.bz2
initscripts-9a89c6d693c914f6cec6e18b86b4f18edd089829.tar.xz
initscripts-9a89c6d693c914f6cec6e18b86b4f18edd089829.zip
- 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
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown3
1 files changed, 1 insertions, 2 deletions
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