Only check tentative when we have a carrier, Gentoo #223061

This commit is contained in:
Roy Marples 2008-05-27 16:41:53 +00:00
parent 75eff5a86b
commit f640ecaebb

View File

@ -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"
}