From f640ecaebb7b72a43501519944c70eef89b4455c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 27 May 2008 16:41:53 +0000 Subject: [PATCH] Only check tentative when we have a carrier, Gentoo #223061 --- net/iproute2.sh | 2 ++ 1 file changed, 2 insertions(+) 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" }