Skip to content

Commit e200477

Browse files
authored
modem_scan: fix typo
1 parent f8768ac commit e200477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luci/luci-app-qmodem/root/usr/share/qmodem/modem_scan.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,10 @@ match_config()
321321
get_modem_model()
322322
{
323323
local at_port=$1
324+
sleep 1
324325
cgmm=$(at $at_port "AT+CGMM")
325326
sleep 1
326-
cgmm_1=$(at $at_port "AT+CGMM")
327+
cgmm_1=$(at $at_port "AT+CGMM?")
327328
name_1=$(echo -e "$cgmm" |grep "+CGMM: " | awk -F': ' '{print $2}')
328329
name_2=$(echo -e "$cgmm_1" |grep "+CGMM: " | awk -F'"' '{print $2} '| cut -d ' ' -f 1)
329330
name_3=$(echo -e "$cgmm" | sed -n '2p')
@@ -370,7 +371,6 @@ add()
370371
for trys in $(seq 1 3);do
371372
for at_port in $valid_at_ports; do
372373
m_debug "try at port $at_port;time $trys"
373-
sleeps 1
374374
get_modem_model "/dev/$at_port"
375375
[ $? -eq 0 ] && break || modem_name=""
376376
done

0 commit comments

Comments
 (0)