2006-09-13 07:06:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
. /etc/nvram.sh
|
|
|
|
|
2006-08-26 08:03:41 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|