network:wait_for_ipv6_auto() wait for all tentative addresses

Harald Hoyer 2016-06-30 12:15:56 +02:00
parent cc3f588071
commit 13264563a9
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ wait_for_ipv6_auto() {
timeout=$(($timeout*10))

while [ $cnt -lt $timeout ]; do
[ -z "$(ip -6 addr show dev "$1" scope global tentative)" ] \
[ -z "$(ip -6 addr show dev "$1" tentative)" ] \
&& [ -n "$(ip -6 route list proto ra dev "$1")" ] \
&& return 0
sleep 0.1