From 889e13400748cf739fcb1a04b7e573de7370b35d Mon Sep 17 00:00:00 2001 From: Jimmy Qin Date: Fri, 13 Feb 2026 20:25:40 +0100 Subject: [PATCH] ddns-scripts: update hotplug script To handle ip address changing by ifupdate. When the ipv6 address is updated for an interface (some ISP only give dynamic ipv6 address). The ddns script will go into dead loop, as the new ipv6 address is not used. The simple change is restarting ddns when ip address is changed. Signed-off-by: Jimmy Qin --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/etc/hotplug.d/iface/ddns | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index b5d05f3520..24af20b3a6 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.8.4 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPL-2.0 diff --git a/net/ddns-scripts/files/etc/hotplug.d/iface/ddns b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns index b0f6c98f84..2db17a05f9 100644 --- a/net/ddns-scripts/files/etc/hotplug.d/iface/ddns +++ b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns @@ -38,4 +38,10 @@ case "$ACTION" in ifdown) ddns_service "ifdown" "$INTERFACE" ;; + ifupdate) + [ -z "$IFUPDATE_ADDRESSES" ] && exit 0 + ddns_service "ifdown" "$INTERFACE" + sleep 1 # give time to shutdown + /etc/init.d/ddns enabled && ddns_service "ifup" "$INTERFACE" + ;; esac