1 ddnsupdate=$(nvram get ddns_update)
2 [ "$ddnsupdate" = 1 ]&& {
3 service=$(nvram get ddns_service)
4 uname=$(nvram get ddns_user)
5 passwd=$(nvram get ddns_password)
6 host=$(nvram get ddns_host)
8 /usr/bin/updatedd -Y $service -- $uname:$passwd $host