summaryrefslogtreecommitdiffstats
path: root/net/ddns-scripts/files/ddns.hotplug
blob: dfb35f6d7afb198d2936ad8bf9b85beaf24ab416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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