From dd9633977ced92476198be782f2eb69c4ed80f97 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Sep 2020 16:13:04 +0200 Subject: ddns-scripts: update hotplug installation Signed-off-by: Florian Eckert --- net/ddns-scripts/files/etc/hotplug.d/iface/ddns | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/ddns-scripts/files/etc/hotplug.d/iface/ddns (limited to 'net/ddns-scripts/files/etc/hotplug.d/iface') 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 000000000..9ef172deb --- /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 -- cgit v1.2.3