From: Giuseppe Lippolis Date: Tue, 9 May 2017 18:23:35 +0000 (+0200) Subject: comgt-3g: enable modem before to setpin X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79def6904786cb71e489f09688edcb3bfd33fb5e;p=openwrt%2Fstaging%2Fhauke.git 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 (cherry picked from commit db776c01e1202307b78a4bb757f78db5ea48e27e) --- diff --git a/package/network/utils/comgt/files/setpin.gcom b/package/network/utils/comgt/files/setpin.gcom index 66350fe20b..a3f3402797 100644 --- a/package/network/utils/comgt/files/setpin.gcom +++ b/package/network/utils/comgt/files/setpin.gcom @@ -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