0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.149.239.1


Current Path : /snap/core/16928/lib/ifupdown/
Upload File :
Current File : //snap/core/16928/lib/ifupdown/wait-for-ll6.sh

#!/bin/sh

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 -tentative)
	if [ -n "$lladdress" ]; then
		attempt=0
		break
	fi
	sleep $delay
done

if [ $attempt -eq $attempts ]; then
	echo "Could not get a link-local address"
	exit 1
fi