summaryrefslogtreecommitdiff
path: root/package/comgt/files/hsoauth.comgt
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-07 23:58:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-07 23:58:22 +0200
commit3c70077f308437281c72431223b532f6f427e1d0 (patch)
treedb825d10d656b0330867ce32e90d9f7207b22f02 /package/comgt/files/hsoauth.comgt
parent92ee1314c1c4f6a93bbca3c4ffaeddc51b5609af (diff)
add support for hso umts modems
if you like to use an usb umts modem with hso chipset, this is the support for it. use following in /etc/network/interfaces: auto hso0 iface hso0 inet manual pin xxxx apn foo.bar credentials go to freewrt 1.0 supporters...
Diffstat (limited to 'package/comgt/files/hsoauth.comgt')
-rw-r--r--package/comgt/files/hsoauth.comgt34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/comgt/files/hsoauth.comgt b/package/comgt/files/hsoauth.comgt
new file mode 100644
index 000000000..ea81ee3ca
--- /dev/null
+++ b/package/comgt/files/hsoauth.comgt
@@ -0,0 +1,34 @@
+opengt
+ set com 115200n81
+ set senddelay 0.02
+ waitquiet 1 0.2
+
+:start
+ flash 0.1
+
+:getuser
+ let $u=$env("USER")
+ let a=len($u)
+ if a=0 goto continue
+
+:getpass
+ let $p=$env("PASS")
+
+:auth
+ print "User: ",$u,"\n"
+ print "Pass: ",$p,"\n"
+ send "AT$QCPDPP=1,1,\""
+ send $p
+ send "\",\""
+ send $u
+ send "\"^m"
+ waitfor 2 "OK"
+ if % = -1 goto error
+ if % = 0 goto continue
+
+:error
+ exit 1
+
+:continue
+ exit 0
+