packages/net/updatedd/files/updatedd.hotplug
jow 83506d17f1 [packages] updatedd: use network.sh to find device names
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 15:12:00 +00:00

15 lines
257 B
Plaintext

NAME=updatedd
CONFIG=/etc/config/$NAME
COMMAND=/usr/bin/$NAME
[ "$ACTION" = "ifup" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
. /lib/functions/network.sh
local device
network_get_device device wan && {
/etc/init.d/updatedd restart
}
} &
}