Signed-off-by: Florian Eckert <fe@dev.tdt.de>
define Package/ddns-scripts/install
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
- $(INSTALL_BIN) ./files/ddns.hotplug \
+ $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
$(1)/etc/hotplug.d/iface/95-ddns
$(INSTALL_DIR) $(1)/etc/init.d
+++ /dev/null
-#!/bin/sh
-
-# there are other ACTIONs like ifupdate we don't need
-case "$ACTION" in
- ifup) # OpenWrt is giving a network not phys. Interface
- /etc/init.d/ddns enabled && /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- start
- ;;
- ifdown)
- /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- stop
- ;;
-esac
--- /dev/null
+#!/bin/sh
+
+# there are other ACTIONs like ifupdate we don't need
+case "$ACTION" in
+ ifup) # OpenWrt is giving a network not phys. Interface
+ /etc/init.d/ddns enabled && /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- start
+ ;;
+ ifdown)
+ /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- stop
+ ;;
+esac