From: Jimmy Qin Date: Fri, 13 Feb 2026 19:25:40 +0000 (+0100) Subject: ddns-scripts: update hotplug script X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=889e13400748cf739fcb1a04b7e573de7370b35d;p=openwrt-packages.git 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 --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index b5d05f352..24af20b3a 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 b0f6c98f8..2db17a05f 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