Browse Source

travelmate: update 1.3.2

- support named 'wifi-iface' sections correctly

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 6 years ago
parent
commit
11c4abe51e
2 changed files with 7 additions and 7 deletions
  1. +2
    -2
      net/travelmate/Makefile
  2. +5
    -5
      net/travelmate/files/travelmate.sh

+ 2
- 2
net/travelmate/Makefile View File

@ -1,12 +1,12 @@
#
# Copyright (c) 2016-2018 Dirk Brenken (dev@brenken.org)
# Copyright (c) 2016-2019 Dirk Brenken (dev@brenken.org)
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=travelmate
PKG_VERSION:=1.3.1
PKG_VERSION:=1.3.2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


+ 5
- 5
net/travelmate/files/travelmate.sh View File

@ -10,7 +10,7 @@
#
LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
trm_ver="1.3.1"
trm_ver="1.3.2"
trm_sysver="unknown"
trm_enabled=0
trm_debug=0
@ -131,7 +131,7 @@ f_prep()
fi
if [ -z "${eaptype}" ] || [ ${eap_rc} -eq 0 ]
then
trm_stalist="$(f_trim "${trm_stalist} ${config}_${radio}")"
trm_stalist="$(f_trim "${trm_stalist} ${config}-${radio}")"
fi
fi
f_log "debug" "f_prep ::: config: ${config}, mode: ${mode}, network: ${network}, eap_rc: ${eap_rc}, radio: ${radio}, trm_radio: ${trm_radio:-"-"}, trm_active_sta: ${trm_active_sta:-"-"}, proactive: ${proactive}, disabled: ${disabled}"
@ -321,7 +321,7 @@ f_main()
for dev in ${trm_devlist}
do
f_log "debug" "f_main ::: dev: ${dev}"
if [ -z "$(printf "%s" "${trm_stalist}" | grep -Fo "_${dev}")" ]
if [ -z "$(printf "%s" "${trm_stalist}" | grep -o "\-${dev}")" ]
then
f_log "debug" "f_main ::: no station on '${dev}' - continue"
continue
@ -332,8 +332,8 @@ f_main()
f_log "debug" "f_main ::: cnt: ${cnt}, max_cnt: ${trm_maxretry}"
for sta in ${trm_stalist}
do
config="${sta%%_*}"
sta_radio="${sta##*_}"
config="${sta%%-*}"
sta_radio="${sta##*-}"
sta_essid="$(uci_get wireless "${config}" ssid)"
sta_bssid="$(uci_get wireless "${config}" bssid)"
sta_iface="$(uci_get wireless "${config}" network)"


Loading…
Cancel
Save