summaryrefslogtreecommitdiff
path: root/packages/avahi/files/99avahi-autoipd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/avahi/files/99avahi-autoipd')
-rwxr-xr-xpackages/avahi/files/99avahi-autoipd10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/avahi/files/99avahi-autoipd b/packages/avahi/files/99avahi-autoipd
new file mode 100755
index 0000000000..234cdaa3eb
--- /dev/null
+++ b/packages/avahi/files/99avahi-autoipd
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
+
+case "$1" in
+
+ leasefail)
+ /usr/sbin/avahi-autoipd -wD $interface 2> /dev/null
+ ;;
+esac