aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-02-15 12:31:32 -0500
committerBill Nottingham <notting@redhat.com>2010-02-15 12:31:32 -0500
commitae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f (patch)
tree109e74b07f521bd859c29bb58e647ff60bba5bba /sysconfig/network-scripts/network-functions
parentd31d3856a58d48595d7fc9bd31448245d81e6762 (diff)
downloadinitscripts-ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f.tar
initscripts-ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f.tar.gz
initscripts-ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f.tar.bz2
initscripts-ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f.tar.xz
initscripts-ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f.zip
Make sure we default to 'ok' if link checking fails.
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 02a024a4..89baeb45 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -253,7 +253,7 @@ check_link_down ()
delay=10
[ -n "$LINKDELAY" ] && delay=$(($LINKDELAY * 2))
while [ $timeout -le $delay ]; do
- [ "$(cat /sys/class/net/$REALDEVICE/carrier 2>/dev/null)" = "1" ] && return 1
+ [ "$(cat /sys/class/net/$REALDEVICE/carrier 2>/dev/null)" != "0" ] && return 1
usleep 500000
timeout=$((timeout+1))
done