9 lines
320 B
Shell
9 lines
320 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-mozout-ddns
|
|
[ "$ACTION" = "ifup" ] || [ "$ACTION" = "ifupdate" ] || exit 0
|
|
case "$INTERFACE" in
|
|
wan|wan6) ;;
|
|
*) exit 0 ;;
|
|
esac
|
|
( sleep 10; /usr/bin/mozout-ddns --force -q ) >/dev/null 2>&1 &
|