travelmate: bugfix single radio mode

* fix the re-connection handling in single radio mode

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2020-10-16 19:31:40 +02:00
parent 0f7f9c96a8
commit 4af889f207
No known key found for this signature in database
GPG key ID: 9D71CD547BFAE684
2 changed files with 4 additions and 4 deletions

View file

@ -6,8 +6,8 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=travelmate PKG_NAME:=travelmate
PKG_VERSION:=1.5.4 PKG_VERSION:=1.5.5
PKG_RELEASE:=3 PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>

View file

@ -10,7 +10,7 @@
# #
LC_ALL=C LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin" PATH="/usr/sbin:/usr/bin:/sbin:/bin"
trm_ver="1.5.4" trm_ver="1.5.5"
trm_enabled=0 trm_enabled=0
trm_debug=0 trm_debug=0
trm_iface="trm_wwan" trm_iface="trm_wwan"
@ -245,7 +245,7 @@ f_check()
{ {
local IFS ifname radio dev_status result uci_section login_command login_command_args wait_time=1 mode="${1}" status="${2:-"false"}" cp_domain="${3:-"false"}" local IFS ifname radio dev_status result uci_section login_command login_command_args wait_time=1 mode="${1}" status="${2:-"false"}" cp_domain="${3:-"false"}"
if [ "${mode}" != "initial" ] && [ "${mode}" != "dev" ] && [ "${status}" = "false" ] if [ "${mode}" != "initial" ] && [ "${status}" = "false" ]
then then
"${trm_wifi}" "${trm_wificmd}" "${trm_wifi}" "${trm_wificmd}"
sleep $((trm_maxwait/6)) sleep $((trm_maxwait/6))