From 2d949d5ab65851bc8b6610dd4288eb8737aa9f86 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 24 Jun 2012 23:52:26 +0200 Subject: Minor changes $STATE_DIR/last_profile was unused and functionality one could want from it will soon be provided by netcfg-daemon. --- src/connections/ethernet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connections/ethernet') diff --git a/src/connections/ethernet b/src/connections/ethernet index 24e92d5..834b333 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -34,7 +34,7 @@ ethernet_up() { if ! checkyesno "${SKIPNOCARRIER:-no}"; then # Some cards are plain slow to come up. Don't fail immediately. - if ! timeout_wait "${CARRIER_TIMEOUT:-5}" '! ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"'; then + if ! timeout_wait "${CARRIER_TIMEOUT:-5}" '(( $(< "/sys/class/net/$INTERFACE/carrier") ))'; then report_iproute "No connection" fi fi -- cgit v1.2.3-24-g4f1b