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:
Dirk Brenken
2017-05-06 07:33:52 +02:00
parent 1dec014e3e
commit b76aacc60a
5 changed files with 46 additions and 46 deletions
+13 -1
View File
@@ -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