aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
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/ifup
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/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 2f61aca1..cad5edcb 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -149,6 +149,7 @@ if [ -n "${DYNCONFIG}" ]; then
echo -n $"Determining IP information for ${DEVICE}..."
if check_link_down ${DEVICE}; then
echo $" failed; no link present. Check cable?"
+ ip link set down ${DEVICE} >/dev/null 2>&1
exit 1
fi