From a810d3308d0117d1e64f176f0a350b4670cb7d78 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 29 May 2002 04:29:53 +0000 Subject: start checking for link again --- sysconfig/network-scripts/ifup | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 219dcfde..8320d2f5 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -151,6 +151,11 @@ if [ -n "${DYNCONFIG}" ]; then DHCPCDARGS="${DHCPCDARGS} -R" fi 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 # DHCP clients need DNS to be available, and we don't know # what DNS server they're using until they are done. -- cgit v1.2.1