- 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>
14 lines
380 B
Bash
14 lines
380 B
Bash
#!/bin/sh
|
|
|
|
# there are other ACTIONs like ifupdate we don't need
|
|
# so parse dynamic_dns_functions.sh only when needed
|
|
case "$ACTION" in
|
|
ifup)
|
|
. /usr/lib/ddns/dynamic_dns_functions.sh
|
|
/etc/init.d/ddns enabled && start_daemon_for_all_ddns_sections "$INTERFACE"
|
|
;;
|
|
ifdown)
|
|
. /usr/lib/ddns/dynamic_dns_functions.sh
|
|
stop_daemon_for_all_ddns_sections "$INTERFACE"
|
|
;;
|
|
esac
|