HEX
Server: nginx
System: Linux 167746b7b9c4 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: www-data (1000)
PHP: 8.4.3
Disabled: NONE
Upload Files
File: //etc/network/if-up.d/dad
#!/bin/sh

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

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

counter=100
while [ "$counter" -gt 0 ] &&
	has_flag tentative &&
	! has_flag dadfailed; do
	sleep 0.2
	counter=$((counter - 1))
done