83506d17f1
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31945 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
257 B
Plaintext
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
|
|
}
|
|
} &
|
|
}
|