File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
luci/luci-app-qmodem/root/usr/share/qmodem Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,9 +321,10 @@ match_config()
321321get_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
You can’t perform that action at this time.
0 commit comments