7608ba449f
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5128 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
378 B
Bash
21 lines
378 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
start() {
|
|
. /etc/nvram.sh
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
stop() {
|
|
killall updatedd
|
|
}
|