|
|
@ -10,7 +10,7 @@ |
|
|
|
# |
|
|
|
LC_ALL=C |
|
|
|
PATH="/usr/sbin:/usr/bin:/sbin:/bin" |
|
|
|
trm_ver="0.8.1" |
|
|
|
trm_ver="0.8.2" |
|
|
|
trm_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')" |
|
|
|
trm_enabled=0 |
|
|
|
trm_debug=0 |
|
|
@ -22,16 +22,6 @@ trm_iwinfo="$(command -v iwinfo)" |
|
|
|
trm_radio="" |
|
|
|
trm_rtfile="/tmp/trm_runtime.json" |
|
|
|
|
|
|
|
# source required system libraries |
|
|
|
# |
|
|
|
if [ -r "/lib/functions.sh" ] && [ -r "/usr/share/libubox/jshn.sh" ] |
|
|
|
then |
|
|
|
. "/lib/functions.sh" |
|
|
|
. "/usr/share/libubox/jshn.sh" |
|
|
|
else |
|
|
|
f_log "error" "system libraries not found" |
|
|
|
fi |
|
|
|
|
|
|
|
# f_envload: load travelmate environment |
|
|
|
# |
|
|
|
f_envload() |
|
|
@ -262,6 +252,16 @@ f_main() |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# source required system libraries |
|
|
|
# |
|
|
|
if [ -r "/lib/functions.sh" ] && [ -r "/usr/share/libubox/jshn.sh" ] |
|
|
|
then |
|
|
|
. "/lib/functions.sh" |
|
|
|
. "/usr/share/libubox/jshn.sh" |
|
|
|
else |
|
|
|
f_log "error" "system libraries not found" |
|
|
|
fi |
|
|
|
|
|
|
|
# handle different travelmate actions |
|
|
|
# |
|
|
|
f_envload |
|
|
|