mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 01:26:38 +02:00
16 lines
285 B
Bash
16 lines
285 B
Bash
#!/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
|