mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-31 04:13:09 +01:00
comgt-3g: enable modem before to setpin
some modems needs to be enabled with CFUN=1 before to set the pin
Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
(cherry picked from commit db776c01e1)
This commit is contained in:
parent
070463fb61
commit
79def69047
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ opengt
|
|||
|
||||
let c=0
|
||||
:start
|
||||
send "AT+CFUN=1^m"
|
||||
send "AT+CPIN?^m"
|
||||
waitfor 15 "SIM PUK","SIM PIN","READY","ERROR","ERR"
|
||||
if % = -1 goto timeout
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue