From db7651a8bce141a09df6010f992d25d532cef896 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 25 Feb 2014 13:31:29 +0100 Subject: [PATCH] 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 --- modules.d/40network/net-lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 8948a47..4e1b019 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