- fixed postinst and prerm in Makefile - implementation of provider specific update scripts into services and services_ipv6 file. first Provider "no-ip.com" - Thanks to DarkStarXxX for request and testing - finished uci/ddns wiki at http://wiki.openwrt.org/doc/uci/ddns - rewritten retry management - rewritten logging including following Issue 469 https://github.com/openwrt/packages/issues/469 - stop running sections on hotplug ifdown event (like start on ifup) - implement trap detection also kill "sleep" child processes SIGHUP to reload configuration (not really reloading, simply starting a new process) /etc/init.d/ddns reload implemented - code optimization - new provider LoopiaDNS.se Issue 494 https://github.com/openwrt/packages/issues/494 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
26 lines
323 B
Bash
26 lines
323 B
Bash
#!/bin/sh /etc/rc.common
|
|
START=95
|
|
STOP=10
|
|
|
|
boot() {
|
|
return 0
|
|
}
|
|
|
|
reload() {
|
|
killall -1 dynamic_dns_updater.sh # send SIGHUP
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
sleep 1 # give time to shutdown
|
|
start
|
|
}
|
|
|
|
start() {
|
|
. /usr/lib/ddns/dynamic_dns_functions.sh
|
|
start_daemon_for_all_ddns_sections
|
|
}
|
|
|
|
stop() {
|
|
killall dynamic_dns_updater.sh
|
|
}
|