remove reference to nvram.sh

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5152 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-10-16 04:32:07 +00:00
parent 0b0a2c52cb
commit 280ffdb0f2

View File

@ -2,16 +2,10 @@
# Copyright (C) 2006 OpenWrt.org
start() {
. /etc/nvram.sh
[ -f /etc/default/ddns ] && . /etc/default/ddns
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
[ "$ddns_update" = 1 ] && {
/usr/bin/updatedd -Y $ddns_service -- $ddns_user:$ddns_passwd $ddns_host
}
}