From b31155c54ce5381a12b36812f452ffbf844328b6 Mon Sep 17 00:00:00 2001 From: Preston Brown Date: Fri, 1 Jun 2001 20:12:33 +0000 Subject: check link status before trying DHCP/BOOTP. --- sysconfig/network-scripts/ifup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index ce0ca127..f1aad49c 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -147,7 +147,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?" + 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. FWHACK= -- cgit v1.2.1