From 56faa91bae6523b587effeef964bc5e34927064e Mon Sep 17 00:00:00 2001 From: James Rayner Date: Sun, 21 Nov 2010 13:54:55 +1100 Subject: FS#21755 - Add option to skip no-carrier test, SKIPNOCARRIER=yes/no --- src/connections/ethernet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/ethernet b/src/connections/ethernet index cdb45ce..04aca4a 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -21,7 +21,7 @@ ethernet_up() { bring_interface up "$INTERFACE" - if ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"; then + if ! checkyesno "${SKIPNOCARRIER:-no}" && ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"; then sleep ${CARRIER_TIMEOUT:-2} # Some cards are plain slow to come up. Don't fail immediately. if ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"; then report_iproute "No connection" -- cgit v1.2.3-24-g4f1b