X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fifup;h=dee4e58b6a45075531518bedc6a544f150e0f2f8;hb=f71a1391f8819a26e9ace72406402c2bc96c8a9e;hp=b0c03f57acf94f2ee00e4986f0c6d7dc4fc1d924;hpb=cf38a080eb13e798c5a1abe84e941e614dc78e52;p=projects%2Frc-scripts.git diff --git a/lib/ifup b/lib/ifup index b0c03f57..dee4e58b 100755 --- a/lib/ifup +++ b/lib/ifup @@ -176,7 +176,8 @@ if [ -n "$BOOTPROTO" -a "$BOOTPROTO" != "none" -a "$BOOTPROTO" != "static" ]; th fi DHCP_ARGS="$DHCP_OPTIONS $DHCP_ARGS" - if check_link_down ${DEVICE}; then + [ -z "$CHECK_LINK_WAIT_TIMEOUT" ] && CHECK_LINK_WAIT_TIMEOUT=5 + if check_link_down ${DEVICE} $(( $CHECK_LINK_WAIT_TIMEOUT * 2 )); then run_cmd "$(nls 'Determining IP information for %s (%s)' "$DEVICE" "${DHCP_CLIENT##*/}")" /bin/false nls '%s: Check cable/radio on-off switch?' "$DEVICE" exit 1