ddns/openwrt/hotplug
2026-11-28 15:28:04 +02:00

9 lines
330 B
Shell

#!/bin/sh
# OpenWrt: update the DNS as soon as the WAN comes up with a new address.
# Install as /etc/hotplug.d/iface/95-interweb-mz-ddns
[ "$ACTION" = "ifup" ] || [ "$ACTION" = "ifupdate" ] || exit 0
case "$INTERFACE" in
wan|wan6) ;;
*) exit 0 ;;
esac
( sleep 10; /usr/bin/interweb-mz-ddns --force -q ) >/dev/null 2>&1 &