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