travelmate: update 1.2.2

* fix restart behaviour after successful connection
* fix labeling of faulty stations
* optimize re-connect behaviour at locations where multiple uplinks with
the same SSID are in range
* use procd pidfile handling
* refine logging
* small fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2018-08-10 15:46:53 +02:00
parent bfe8850ee5
commit bc78ad8200
3 changed files with 31 additions and 38 deletions
+3 -5
View File
@@ -22,6 +22,7 @@ start_service()
then
procd_open_instance "travelmate"
procd_set_param command "${trm_script}" "${@}"
procd_set_param pidfile "${trm_pidfile}"
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
@@ -31,15 +32,12 @@ start_service()
reload_service()
{
[ -s "${trm_pidfile}" ] && return 1
"${trm_init}" restart
rc_procd start_service
}
stop_service()
{
local rtfile="$(uci_get travelmate global trm_rtfile)"
rtfile="${rtfile:-"/tmp/trm_runtime.json"}"
> "${rtfile}"
rc_procd "${trm_script}" stop
rc_procd start_service
}