Skip to content

Commit 57901f9

Browse files
committed
fix: retrieve vendor and product IDs
1 parent afc1b4c commit 57901f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

application/qmodem/files/usr/share/qmodem/modem_scan.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ add()
441441
esac
442442
#if no netdev return
443443
[ -z "$net_devices" ] && lock -u /tmp/lock/modem_add_$slot && return
444+
product_id=$(cat $modem_path/idProduct)
445+
vendor_id=$(cat $modem_path/idVendor)
446+
id="$vendor_id:$product_id"
444447
modem_name=$(get_model_name_by_id $id)
445448
if [ -z "$modem_name" ];then
446449
for trys in $(seq 1 3);do

0 commit comments

Comments
 (0)