[for-15.05] ddns-scripts: backport of 2.7.6-10

Backport of current version 2.7.6-10
- more services
- more functionality
- be prepared for next versions

compiled ipk-packages available at
https://github.com/chris5560/OpenWrt-Backports/tree/master/for-CC15.05.01/ddns-scripts_2.7.6-10

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
Christian Schoenebeck
2017-01-11 17:05:05 +01:00
parent 61fad8538b
commit 728f37ad15
19 changed files with 4415 additions and 1426 deletions
+6 -7
View File
@@ -7,22 +7,21 @@ boot() {
}
reload() {
killall -1 dynamic_dns_updater.sh 2>/dev/null # send SIGHUP
/usr/lib/ddns/dynamic_dns_updater.sh -- reload
return 0
}
restart() {
stop
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
sleep 1 # give time to shutdown
start
/usr/lib/ddns/dynamic_dns_updater.sh -- start
}
start() {
. /usr/lib/ddns/dynamic_dns_functions.sh
start_daemon_for_all_ddns_sections
/usr/lib/ddns/dynamic_dns_updater.sh -- start
}
stop() {
killall dynamic_dns_updater.sh 2>/dev/null
return 0 # if killall fails, ignore
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
return 0
}