aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorGiuseppe Lippolis <giu.lippolis@gmail.com>2017-05-09 20:23:35 +0200
committerJohn Crispin <john@phrozen.org>2017-05-18 07:07:00 +0200
commitdb776c01e1202307b78a4bb757f78db5ea48e27e (patch)
tree7c5920ebab5737cfbcf1a01030a5acaf50063904 /package
parent0dcc36fc7ddecf23b915621c6652dacf75006511 (diff)
downloadupstream-db776c01e1202307b78a4bb757f78db5ea48e27e.tar.gz
upstream-db776c01e1202307b78a4bb757f78db5ea48e27e.tar.bz2
upstream-db776c01e1202307b78a4bb757f78db5ea48e27e.zip
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>
Diffstat (limited to 'package')
-rw-r--r--package/network/utils/comgt/Makefile2
-rw-r--r--package/network/utils/comgt/files/setpin.gcom1
2 files changed, 2 insertions, 1 deletions
diff --git a/package/network/utils/comgt/Makefile b/package/network/utils/comgt/Makefile
index 3926016581..ce99a2a688 100644
--- a/package/network/utils/comgt/Makefile
+++ b/package/network/utils/comgt/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=comgt
PKG_VERSION:=0.32
-PKG_RELEASE:=28
+PKG_RELEASE:=29
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/comgt
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