From 53d4c356aaa03d4f967b1ffef0dfd51e7c4a46ca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Oct 2006 04:32:07 +0000 Subject: [PATCH] remove reference to nvram.sh SVN-Revision: 5152 --- net/updatedd/files/ddns.init | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/net/updatedd/files/ddns.init b/net/updatedd/files/ddns.init index faaccb552c..c096b2db77 100644 --- a/net/updatedd/files/ddns.init +++ b/net/updatedd/files/ddns.init @@ -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 } } -- 2.30.2