From: Florian Eckert Date: Wed, 16 Sep 2020 14:13:04 +0000 (+0200) Subject: ddns-scripts: update hotplug installation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dd9633977ced92476198be782f2eb69c4ed80f97;p=feed%2Fpackages.git ddns-scripts: update hotplug installation Signed-off-by: Florian Eckert --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 321930f067..6524518aa0 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -165,7 +165,7 @@ endef 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 diff --git a/net/ddns-scripts/files/ddns.hotplug b/net/ddns-scripts/files/ddns.hotplug deleted file mode 100755 index 9ef172deb6..0000000000 --- a/net/ddns-scripts/files/ddns.hotplug +++ /dev/null @@ -1,11 +0,0 @@ -#!/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 diff --git a/net/ddns-scripts/files/etc/hotplug.d/iface/ddns b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns new file mode 100644 index 0000000000..9ef172deb6 --- /dev/null +++ b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns @@ -0,0 +1,11 @@ +#!/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