packages/net/updatedd/files/updatedd.hotplug
olli e41e87b51f updatedd:
* Update the init script and config file to use multiple updates
 * Cleanup the Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8072 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-20 12:15:36 +00:00

16 lines
433 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/updatedd restart
}
} &
}