From c80ee407db690bf4529fb359c0f16fa417497e11 Mon Sep 17 00:00:00 2001 From: markus <> Date: Tue, 25 Nov 2008 12:11:44 +0000 Subject: [PATCH] delay /etc/netstart until IPv6-DAD (dup-address-detection) is completed. ok fries, hshoexer, claudio --- src/etc/netstart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index f780259a..573c82dc 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.123 2008/08/14 00:59:50 sthen Exp $ +# $OpenBSD: netstart,v 1.124 2008/11/25 12:11:44 markus Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout @@ -390,5 +390,8 @@ done if [ "$ip6kernel" = "YES" ]; then # this is to make sure DAD is completed before going further. - sleep `sysctl -n net.inet6.ip6.dad_count` + count=0 + while [ $((count++)) -lt 10 -a "x"`sysctl -n net.inet6.ip6.dad_pending` != "x0" ]; do + sleep 1 + done fi