packages/net/updatedd/files/ddns.hotplug
thepeople 3a7be611d5 fix path to config and binary
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6590 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-17 03:32:12 +00:00

16 lines
429 B
Plaintext

NAME=updatedd
CONFIG=/etc/config/$NAME
COMMAND=/usr/bin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
include /lib/network
scan_interfaces
config_get ifname wan ifname
[ -n "$ifname" ] && {
/etc/init.d/ddns restart
}
} &
}