c096b2db774b52da23d2bed89c7a20a490e18510
[openwrt/svn-archive/archive.git] / net / updatedd / files / ddns.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 start() {
5 [ -f /etc/default/ddns ] && . /etc/default/ddns
6
7 [ "$ddns_update" = 1 ] && {
8 /usr/bin/updatedd -Y $ddns_service -- $ddns_user:$ddns_passwd $ddns_host
9 }
10 }
11
12 stop() {
13 killall updatedd
14 }