aboutsummaryrefslogblamecommitdiffstats
path: root/main/busybox/dad.if-up
blob: 98841da7c0ce9e29293b85db961df495107df4f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                 
                                         
 




                                                    

                 
#!/bin/sh

# Block ifup until DAD completion
# Copyright (c) 2016-2018 Kaarle Ritvanen

has_flag() {
	ip address show dev $IFACE | grep -q " $1 "
}

while has_flag tentative && ! has_flag dadfailed; do
	sleep 0.2
done