diff --git a/init.d/net.lo.in b/init.d/net.lo.in index d42b5ae..47bdc2f 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -108,7 +108,7 @@ _wait_for_carrier() _has_carrier && return 0 eval timeout=\$carrier_timeout_${IFVAR} - timeout=${timeout:-${carrier_timeout:-0}} + timeout=${timeout:-${carrier_timeout:-5}} # Incase users don't want this nice feature ... [ ${timeout} -le 0 ] && return 0 diff --git a/net/iproute2.sh b/net/iproute2.sh index 3bab7b7..194c593 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -212,7 +212,7 @@ _delete_addresses() _has_carrier() { - LC_ALL=C ip link show dev "${IFACE}" | grep -q "LOWER_UP" + return 0 } _tunnel()