diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-15 12:31:32 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-02-15 12:31:32 -0500 |
commit | ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f (patch) | |
tree | 109e74b07f521bd859c29bb58e647ff60bba5bba /sysconfig/network-scripts/network-functions | |
parent | d31d3856a58d48595d7fc9bd31448245d81e6762 (diff) | |
download | initscripts-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-functions | 2 |
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 |