summaryrefslogtreecommitdiffstats
path: root/openwrt/package/updatedd/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/updatedd/files')
-rw-r--r--openwrt/package/updatedd/files/S55ddns10
1 files changed, 10 insertions, 0 deletions
diff --git a/openwrt/package/updatedd/files/S55ddns b/openwrt/package/updatedd/files/S55ddns
new file mode 100644
index 000000000..b02d57917
--- /dev/null
+++ b/openwrt/package/updatedd/files/S55ddns
@@ -0,0 +1,10 @@
+ddnsupdate=$(nvram get ddns_update)
+[ "$ddnsupdate" = 1 ]&& {
+ service=$(nvram get ddns_service)
+ uname=$(nvram get ddns_user)
+ passwd=$(nvram get ddns_password)
+ host=$(nvram get ddns_host)
+
+ /usr/bin/updatedd -Y $service -- $uname:$passwd $host
+}
+