2008-03-18 19:07:42 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-11-13 22:15:55 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2008-03-18 19:07:42 +00:00
|
|
|
|
|
|
|
START=80
|
|
|
|
|
2011-11-13 22:15:55 +00:00
|
|
|
include /lib/network
|
2008-03-18 19:07:42 +00:00
|
|
|
|
2011-11-13 22:15:55 +00:00
|
|
|
start() {
|
2008-03-18 19:07:42 +00:00
|
|
|
scan_interfaces
|
2011-11-13 22:15:55 +00:00
|
|
|
config_get wan_if 'wan' 'ifname'
|
|
|
|
[ -n "$wan_if" ] || return 1
|
|
|
|
[ -f /etc/ndyndns/ndyndns.conf ] || {
|
|
|
|
echo "$0: missing config file '/etc/ndyndns/ndyndns.conf'" 1>&2
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
service_start /usr/sbin/ndyndns -c /etc/ndyndns -f /etc/ndyndns/ndyndns.conf -i $wan_if
|
2008-03-18 19:07:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-13 22:15:55 +00:00
|
|
|
service_stop /usr/sbin/ndyndns
|
2008-03-18 19:07:42 +00:00
|
|
|
}
|