Skip to content

Commit a66a565

Browse files
authored
Up to 1.0.41-20230403
Fixes for ACM devices
1 parent 068eccf commit a66a565

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

luci-app-3ginfo-lite/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LUCI_TITLE:=LuCI JS Support for 3ginfo-lite
1111
LUCI_DESCRIPTION:=LuCI JS interface for the 3ginfo-lite. The package allows you to view the parameters of the mobile internet connection.
1212
LUCI_PKGARCH:=all
1313
LUCI_DEPENDS:=+sms-tool +comgt
14-
PKG_VERSION:=1.0.40-20230321
14+
PKG_VERSION:=1.0.41-20230403
1515

1616
include $(TOPDIR)/feeds/luci/luci.mk
1717

luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ band5g() {
147147
getdevicevendorproduct() {
148148
devname="$(basename $1)"
149149
case "$devname" in
150+
'ttyACM'*)
151+
devpath="$(readlink -f /sys/class/tty/$devname/device)"
152+
T=${devpath%/*}
153+
echo "$(cat $T/idVendor)$(cat $T/idProduct)"
154+
;;
150155
'tty'*)
151156
devpath="$(readlink -f /sys/class/tty/$devname/device)"
152157
T=${devpath%/*/*}

luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/detect.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
getdevicepath() {
1010
devname="$(basename $1)"
1111
case "$devname" in
12+
'ttyACM'*)
13+
devpath="$(readlink -f /sys/class/tty/$devname/device)"
14+
echo ${devpath%/*}
15+
;;
1216
'tty'*)
1317
devpath="$(readlink -f /sys/class/tty/$devname/device)"
1418
echo ${devpath%/*/*}

0 commit comments

Comments
 (0)