packages/net/updatedd/files/updatedd.hotplug
thepeople 52b8b16c86 do not lock this to wan, allows it to be used on wan interfaces not named wan.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19865 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-26 03:41:56 +00:00

16 lines
409 B
Plaintext

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