From: Harald Hoyer Date: Tue, 25 Feb 2014 12:31:29 +0000 (+0100) Subject: network/net-lib.sh:wait_for_ipv6_auto() also wait for the tentative flag X-Git-Tag: 037~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f70f811539eb6f8d51d3f0f13e5c23e444f412a;p=thirdparty%2Fdracut.git network/net-lib.sh:wait_for_ipv6_auto() also wait for the tentative flag Wait until the tentative flag is cleared. https://bugzilla.redhat.com/show_bug.cgi?id=1069263 --- diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 8948a476f..4e1b0192f 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -456,7 +456,9 @@ wait_for_ipv6_auto() { local li while [ $cnt -lt 400 ]; do li=$(ip -6 addr show dev $1) - strstr "$li" "dynamic" && return 0 + if ! strstr "$li" "tentative"; then + strstr "$li" "dynamic" && return 0 + fi sleep 0.1 cnt=$(($cnt+1)) done