From bfca5654959d27603eb50747d9998b92f1d7eb41 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Fri, 11 Mar 2016 22:09:06 +0100 Subject: ipv6: Wait properly for Link-Local Address to go through DAD The -tentative flag makes sure we only list addresses which are NOT in the process of Duplicate Address Detection. This makes sure we wait for the Link-Local Address to become available so that programs like dhclient can properly come online. This should fix Ubuntu bug #1543352 Link: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1543352 Signed-off-by: Wido den Hollander --- wait-for-ll6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wait-for-ll6.sh b/wait-for-ll6.sh index 8389aee..22ba045 100644 --- a/wait-for-ll6.sh +++ b/wait-for-ll6.sh @@ -4,7 +4,7 @@ attempts=${IF_LL_ATTEMPTS:-60} delay=${IF_LL_INTERVAL:-0.1} for attempt in $(seq 1 $attempts); do - lladdress=$(ip -6 -o a s dev "$IFACE" scope link) + lladdress=$(ip -6 -o a s dev "$IFACE" scope link -tentative) if [ -n "$lladdress" ]; then attempt=0 break -- cgit v0.12