travelmate: update 0.4.1

* mute useless logging in "active mode"
* optimize startup behaviour
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2017-03-04 20:30:04 +01:00
parent 4dd7e2edc8
commit 37d7841f35
3 changed files with 37 additions and 23 deletions
+7 -2
View File
@@ -1,15 +1,20 @@
#!/bin/sh /etc/rc.common
START=85
START=90
USE_PROCD=1
trm_script="/usr/bin/travelmate.sh"
boot()
{
ubus -t 30 wait_for network.interface
rc_procd start_service
}
start_service()
{
if [ $(/etc/init.d/travelmate enabled; printf ${?}) -eq 0 ]
then
ubus -t 30 wait_for network.interface
procd_open_instance "travelmate"
procd_set_param command "${trm_script}" "${@}"
procd_set_param stdout 1