travelmate: update 1.1.3
* fix remaining status oddities * LuCI: show WiFi QR codes from all configured Access Points Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
9cc8de86c9
commit
fe7d6d7522
2 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=travelmate
|
||||
PKG_VERSION:=1.1.2
|
||||
PKG_VERSION:=1.1.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=GPL-3.0+
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
LC_ALL=C
|
||||
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
trm_ver="1.1.2"
|
||||
trm_ver="1.1.3"
|
||||
trm_sysver="unknown"
|
||||
trm_enabled=0
|
||||
trm_debug=0
|
||||
|
@ -179,7 +179,7 @@ f_check()
|
|||
trm_ifstatus="$(ubus -S call network.interface dump 2>/dev/null | jsonfilter -l1 -e "@.interface[@.device=\"${ifname}\"].up")"
|
||||
elif [ "${mode}" = "initial" ] && [ ${trm_ifquality} -lt ${trm_minquality} ]
|
||||
then
|
||||
trm_connection=""
|
||||
trm_ifstatus="${status}"
|
||||
sta_essid="$(printf "%s" "${dev_status}" | jsonfilter -l1 -e '@.*.interfaces[@.config.mode="sta"].*.ssid')"
|
||||
sta_bssid="$(printf "%s" "${dev_status}" | jsonfilter -l1 -e '@.*.interfaces[@.config.mode="sta"].*.bssid')"
|
||||
f_log "info" "uplink '${sta_essid:-"-"}/${sta_bssid:-"-"}' is out of range (${trm_ifquality}/${trm_minquality}), uplink disconnected (${trm_sysver})"
|
||||
|
@ -219,10 +219,12 @@ f_jsnup()
|
|||
if [ "${status}" = "true" ]
|
||||
then
|
||||
status="connected (${trm_connection:-"-"})"
|
||||
elif [ "${status}" = "false" ]
|
||||
then
|
||||
else
|
||||
trm_connection=""
|
||||
status="not connected"
|
||||
if [ "${status}" = "false" ]
|
||||
then
|
||||
status="not connected"
|
||||
fi
|
||||
fi
|
||||
|
||||
dev_status="$(ubus -S call network.wireless status 2>/dev/null)"
|
||||
|
|
Loading…
Reference in a new issue