#
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
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()
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