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" ] && {
|
2007-02-28 17:58:09 +00:00
|
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
|
|
include /lib/network
|
|
|
|
scan_interfaces
|
|
|
|
|
|
|
|
config_get ifname wan ifname
|
|
|
|
[ -n "$ifname" ] && {
|
2007-07-20 12:15:36 +00:00
|
|
|
/etc/init.d/updatedd restart
|
2007-02-28 17:58:09 +00:00
|
|
|
}
|
|
|
|
} &
|
|
|
|
}
|