mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user