Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 433012 | Differences between
and this patch

Collapse All | Expand All

(-)a/net/iproute2.sh (-2 / +2 lines)
Lines 212-218 _delete_addresses() Link Here
212
212
213
_has_carrier()
213
_has_carrier()
214
{
214
{
215
	return 0
215
	LC_ALL=C ip link show dev "${IFACE}" | grep -q "LOWER_UP"
216
}
216
}
217
217
218
_tunnel()
218
_tunnel()
Lines 287-293 iproute2_pre_start() Link Here
287
_iproute2_ipv6_tentative()
287
_iproute2_ipv6_tentative()
288
{
288
{
289
	# Only check tentative when we have a carrier.
289
	# Only check tentative when we have a carrier.
290
	LC_ALL=C ip link show dev "${IFACE}" | grep -q "NO-CARRIER" && return 1
290
	_has_carrier || return 1
291
	LC_ALL=C ip addr show dev "${IFACE}" | \
291
	LC_ALL=C ip addr show dev "${IFACE}" | \
292
		grep -q "^[[:space:]]*inet6 .* tentative"
292
		grep -q "^[[:space:]]*inet6 .* tentative"
293
}
293
}

Return to bug 433012