]> git.99rst.org Git - openwrt-packages.git/commitdiff
ddns-scripts: update hotplug script
authorJimmy Qin <redacted>
Fri, 13 Feb 2026 19:25:40 +0000 (20:25 +0100)
committerFlorian Eckert <redacted>
Mon, 7 Sep 2026 10:11:58 +0000 (12:11 +0200)
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 <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/etc/hotplug.d/iface/ddns

index b5d05f3520033562cbccac410dbebc8c6cfb7de0..24af20b3a67001e775d5abae3a82c6bb878421bc 100644 (file)
@@ -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
 
index b0f6c98f847275dc4a83e04d67d7a8797a8c2098..2db17a05f9263439eb89e963d2c579618c13033a 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT