Wait for IPv6 addresses to complete, Gentoo bug #169442.
This commit is contained in:
parent
bf8d8a9be7
commit
6ce3bf096b
@ -222,4 +222,12 @@ ifconfig_pre_start() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ifconfig_post_start() {
|
||||||
|
vebegin "Waiting for IPv6 addresses"
|
||||||
|
while true; do
|
||||||
|
LC_ALL=C ifconfig "${IFACE}" | grep -q "^[[:space:]]*inet6 .* tentative" || break
|
||||||
|
done
|
||||||
|
veend 0
|
||||||
|
}
|
||||||
|
|
||||||
# vim: set ts=4 :
|
# vim: set ts=4 :
|
||||||
|
@ -216,6 +216,12 @@ iproute2_post_start() {
|
|||||||
if [ -e /proc/net/route ]; then
|
if [ -e /proc/net/route ]; then
|
||||||
ip route flush table cache dev "${IFACE}"
|
ip route flush table cache dev "${IFACE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
vebegin "Waiting for IPv6 addresses"
|
||||||
|
while true; do
|
||||||
|
LC_ALL=C ip addr show dev "${IFACE}" | grep -q "^[[:space:]]*inet6 .* tentative" || break
|
||||||
|
done
|
||||||
|
veend 0
|
||||||
}
|
}
|
||||||
|
|
||||||
iproute2_post_stop() {
|
iproute2_post_stop() {
|
||||||
|
Loading…
Reference in New Issue
Block a user