travelmate: update 2.0.2

* fix a vpn/iptables race condition
* remove needless dnsmasq dependency
* synchronize code-base of all auto-login scripts, due to
  COVID-19 restrictions all of them are still untested/WIP
* various small cleanups

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2020-10-03 10:24:28 +02:00
parent d3a213b01b
commit 404dc5b101
11 changed files with 159 additions and 96 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#!/bin/sh /etc/rc.common
# set (s)hellcheck exceptions
# shellcheck disable=1091,2016,2039,2059,2086,2143,2181,2188
# shellcheck disable=1091,2016,2034,2039,2059,2086,2143,2181,2188
START=25
USE_PROCD=1
@@ -25,7 +25,7 @@ boot()
start_service()
{
if [ "$("${trm_init}" enabled; printf "%u" ${?})" -eq "0" ]
if [ "$("${trm_init}" enabled; printf "%u" ${?})" = "0" ]
then
procd_open_instance "travelmate"
procd_set_param command "${trm_script}" "${@}"
@@ -69,7 +69,7 @@ status_service()
rtfile="$(uci_get travelmate global trm_rtfile "/tmp/trm_runtime.json")"
json_load_file "${rtfile}" >/dev/null 2>&1
json_select data >/dev/null 2>&1
if [ ${?} -eq 0 ]
if [ "${?}" = "0" ]
then
printf "%s\n" "::: travelmate runtime information"
json_get_keys keylist