diff options
author | Bill Nottingham <notting@redhat.com> | 2002-05-29 04:29:53 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-05-29 04:29:53 +0000 |
commit | a810d3308d0117d1e64f176f0a350b4670cb7d78 (patch) | |
tree | 14300972710ddf82a7c9d81aa2f9d28471f26375 | |
parent | f3d6dd6e6133cea3647f5ff761ce8aa17dacef18 (diff) | |
download | initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.gz initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.bz2 initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.xz initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.zip |
start checking for link again
-rwxr-xr-x | sysconfig/network-scripts/ifup | 5 |
1 files changed, 5 insertions, 0 deletions
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. |