remove reference to nvram.sh
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 04:32:07 +0000 (04:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 04:32:07 +0000 (04:32 +0000)
SVN-Revision: 5152

net/updatedd/files/ddns.init

index faaccb552c82e09d59c2485ec43e23f910b12318..c096b2db774b52da23d2bed89c7a20a490e18510 100644 (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
        }
 }