diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-09-16 16:13:04 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-09-21 10:17:01 +0200 |
commit | dd9633977ced92476198be782f2eb69c4ed80f97 (patch) | |
tree | 9999c4673acd0a993bed448b0f8403af6bd89427 /net/ddns-scripts/files/etc/hotplug.d/iface | |
parent | 63804b735801cda0b86018c686b0c2a44f4ccc36 (diff) |
ddns-scripts: update hotplug installation
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'net/ddns-scripts/files/etc/hotplug.d/iface')
-rw-r--r-- | net/ddns-scripts/files/etc/hotplug.d/iface/ddns | 11 |
1 files changed, 11 insertions, 0 deletions
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 |