Blame SOURCES/0135-network-net-lib.sh-wait_for_ipv6_auto-also-wait-for-.patch

712866
From 61fe0031683c8e1c36ca6ca3022ef6243bfae268 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 25 Feb 2014 13:31:29 +0100
712866
Subject: [PATCH] network/net-lib.sh:wait_for_ipv6_auto() also wait for the
712866
 tentative flag
712866
712866
Wait until the tentative flag is cleared.
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1069263
712866
---
712866
 modules.d/40network/net-lib.sh | 4 +++-
712866
 1 file changed, 3 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
5c6c2a
index 8948a476..4e1b0192 100755
712866
--- a/modules.d/40network/net-lib.sh
712866
+++ b/modules.d/40network/net-lib.sh
712866
@@ -456,7 +456,9 @@ wait_for_ipv6_auto() {
712866
     local li
712866
     while [ $cnt -lt 400 ]; do
712866
         li=$(ip -6 addr show dev $1)
712866
-        strstr "$li" "dynamic" && return 0
712866
+        if ! strstr "$li" "tentative"; then
712866
+            strstr "$li" "dynamic" && return 0
712866
+        fi
712866
         sleep 0.1
712866
         cnt=$(($cnt+1))
712866
     done