packages/net/updatedd/files/updatedd.hotplug

15 lines
257 B
Plaintext
Raw Normal View History

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
}
} &
}