2007-02-28 17:58:09 +00:00
|
|
|
NAME=updatedd
|
2007-03-17 03:32:12 +00:00
|
|
|
CONFIG=/etc/config/$NAME
|
|
|
|
COMMAND=/usr/bin/$NAME
|
2007-02-28 17:58:09 +00:00
|
|
|
|
2010-02-26 03:41:56 +00:00
|
|
|
[ "$ACTION" = "ifup" ] && {
|
2012-05-28 15:12:00 +00:00
|
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
|
|
. /lib/functions/network.sh
|
2007-02-28 17:58:09 +00:00
|
|
|
|
2012-05-28 15:12:00 +00:00
|
|
|
local device
|
|
|
|
network_get_device device wan && {
|
|
|
|
/etc/init.d/updatedd restart
|
|
|
|
}
|
|
|
|
} &
|
2007-02-28 17:58:09 +00:00
|
|
|
}
|