diff options
author | James Rayner <james@rayner.id.au> | 2010-11-21 03:54:55 +0100 |
---|---|---|
committer | James Rayner <james@rayner.id.au> | 2010-11-21 03:54:55 +0100 |
commit | 56faa91bae6523b587effeef964bc5e34927064e (patch) | |
tree | 3a7701aab09ef1741bb7ff7d1282d542f0e1e007 /src/connections | |
parent | 93540ca0206a577ecfb15b5a08f8df12c728912a (diff) | |
download | netctl-56faa91bae6523b587effeef964bc5e34927064e.tar.gz netctl-56faa91bae6523b587effeef964bc5e34927064e.tar.xz |
FS#21755 - Add option to skip no-carrier test, SKIPNOCARRIER=yes/no
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/ethernet | 2 |
1 files changed, 1 insertions, 1 deletions
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" |