comgt-3g: enable modem before to setpin
[openwrt/openwrt.git] / package / network / utils / comgt / files / setpin.gcom
index 66350fe20b7fe9776fed4c83424cc01787b03a9e..a3f3402797e09f22b8c3882cd960d9924f0157c9 100644 (file)
@@ -7,6 +7,7 @@ opengt
 
  let c=0
 :start
 
  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
  send "AT+CPIN?^m"
  waitfor 15 "SIM PUK","SIM PIN","READY","ERROR","ERR"
  if % = -1 goto timeout