summaryrefslogtreecommitdiff
path: root/openwrt/package/updatedd/files
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-08 08:10:57 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-08 08:10:57 +0000
commitd186db1599f143f35eaf074d407e5d0808fcae43 (patch)
treeb437234c49c12f4bf7fcd6d1048b22a86f3cdfe3 /openwrt/package/updatedd/files
parent7c012cb13763e00aed89c9335da3d5d0ecef16d7 (diff)
add package from tonym, thx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1879 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 0000000000..b02d579178
--- /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
+}
+