mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
travelmate: update 0.7.2
backend: * remove redundant 'iwinfo' support & add 'iw' package dependency * refine stop action & json runtime housekeeping * various small fixes * documentation update frontend (see LuCI repo): * simplify uplink interface setup (just one Click! ;-), now part of the overview tab * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -17,7 +17,7 @@ boot()
|
||||
|
||||
start_service()
|
||||
{
|
||||
if [ $("${trm_init}" enabled; printf ${?}) -eq 0 ]
|
||||
if [ $("${trm_init}" enabled; printf "%u" ${?}) -eq 0 ]
|
||||
then
|
||||
procd_open_instance "travelmate"
|
||||
procd_set_param command "${trm_script}" "${@}"
|
||||
@@ -27,6 +27,18 @@ start_service()
|
||||
fi
|
||||
}
|
||||
|
||||
stop_service()
|
||||
{
|
||||
local rtfile="$(uci -q get travelmate.global.trm_rtfile)"
|
||||
|
||||
rtfile="${rtfile:="/tmp/trm_runtime.json"}"
|
||||
if [ -s "${rtfile}" ]
|
||||
then
|
||||
> "${rtfile}"
|
||||
fi
|
||||
rc_procd start_service
|
||||
}
|
||||
|
||||
status()
|
||||
{
|
||||
rc_procd "${trm_script}" status
|
||||
|
||||
Reference in New Issue
Block a user