aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/dad.if-up
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-12-23 15:25:12 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-12-23 15:25:12 +0200
commit49aef08bd387a8d341dc67e7b3d5ade20eb228e8 (patch)
tree1221c65758a84916189e2e5fae70019d439c3f52 /main/busybox/dad.if-up
parent2f07dfbfd1efd65126d2247b076c10142f7d6696 (diff)
downloadaports-49aef08bd387a8d341dc67e7b3d5ade20eb228e8.tar.gz
aports-49aef08bd387a8d341dc67e7b3d5ade20eb228e8.tar.bz2
aports-49aef08bd387a8d341dc67e7b3d5ade20eb228e8.tar.xz
main/busybox: ifup: block until DAD completion
fixes #2773
Diffstat (limited to 'main/busybox/dad.if-up')
-rw-r--r--main/busybox/dad.if-up8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/busybox/dad.if-up b/main/busybox/dad.if-up
new file mode 100644
index 0000000000..e76bb60bfa
--- /dev/null
+++ b/main/busybox/dad.if-up
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Block ifup until DAD completion
+# Copyright (c) 2016 Kaarle Ritvanen
+
+while ip address show dev $IFACE | grep -q " tentative "; do
+ sleep 0.2
+done