packages/net/updatedd/files/updatedd.hotplug

16 lines
409 B
Plaintext
Raw Normal View History

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