travelmate: update 1.3.2 7882/head
authorDirk Brenken <dev@brenken.org>
Sat, 5 Jan 2019 22:21:20 +0000 (23:21 +0100)
committerDirk Brenken <dev@brenken.org>
Sat, 5 Jan 2019 22:21:20 +0000 (23:21 +0100)
- support named 'wifi-iface' sections correctly

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/travelmate/Makefile
net/travelmate/files/travelmate.sh

index 5a21ce4ccb658c0300049e1d915740f718d99ed5..302b7928a4041e14a1650c35262f8573b6c77b4e 100644 (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>
index 57deb1e5bbeb7193244d6000eaf0643e02f8c104..b5bdf189cdabbd0973505b7b234e4570d60c035f 100755 (executable)
@@ -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)"