summaryrefslogtreecommitdiffstats
path: root/openwrt/package/updatedd/files/S55ddns
blob: b02d5791783f63c5d88f4e30157156d8bdca02fe (plain)
1
2
3
4
5
6
7
8
9
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
}