aboutsummaryrefslogtreecommitdiff
path: root/net/ddns-scripts/files/etc/hotplug.d/iface/ddns
blob: 9ef172deb663df64a4d1063cd19898250afb29eb (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# there are other ACTIONs like ifupdate we don't need
case "$ACTION" in
	ifup)					# OpenWrt is giving a network not phys. Interface
		/etc/init.d/ddns enabled && /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- start
		;;
	ifdown)
		/usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- stop
		;;
esac