aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-05-29 04:29:53 +0000
committerBill Nottingham <notting@redhat.com>2002-05-29 04:29:53 +0000
commita810d3308d0117d1e64f176f0a350b4670cb7d78 (patch)
tree14300972710ddf82a7c9d81aa2f9d28471f26375 /sysconfig/network-scripts
parentf3d6dd6e6133cea3647f5ff761ce8aa17dacef18 (diff)
downloadinitscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar
initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.gz
initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.bz2
initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.tar.xz
initscripts-a810d3308d0117d1e64f176f0a350b4670cb7d78.zip
start checking for link again
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup5
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.