aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-27 16:41:53 +0000
committerRoy Marples <roy@marples.name>2008-05-27 16:41:53 +0000
commitf640ecaebb7b72a43501519944c70eef89b4455c (patch)
treea6a8adbbb817d53568f79b7f3c92e12402fee952 /net
parent75eff5a86b9aa15e584274a7555d13c4aeeef7e4 (diff)
Only check tentative when we have a carrier, Gentoo #223061
Diffstat (limited to 'net')
-rw-r--r--net/iproute2.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 2d92d8fd..9901aae5 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -208,6 +208,8 @@ iproute2_pre_start()
_iproute2_ipv6_tentative()
{
+ # Only check tentative when we have a carrier.
+ LC_ALL=C ip link show dev "${IFACE}" | grep -q "NO-CARRIER" && return 1
LC_ALL=C ip addr show dev "${IFACE}" | \
grep -q "^[[:space:]]*inet6 .* tentative"
}