2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2006-09-13 07:06:35 +00:00
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
2006-10-16 04:32:07 +00:00
|
|
|
[ -f /etc/default/ddns ] && . /etc/default/ddns
|
2006-10-04 20:57:49 +00:00
|
|
|
|
2006-10-16 04:32:07 +00:00
|
|
|
[ "$ddns_update" = 1 ] && {
|
|
|
|
/usr/bin/updatedd -Y $ddns_service -- $ddns_user:$ddns_passwd $ddns_host
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|
2006-08-26 08:03:41 +00:00
|
|
|
}
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
stop() {
|
|
|
|
killall updatedd
|
|
|
|
}
|