English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/comgt/files/hsoauth.comgt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3804 - (show annotations) (download)
Thu Oct 2 11:04:08 2008 UTC (5 years, 4 months ago) by markus
File size: 404 byte(s)
the only available documentation is wrong here, username and password are required contrariwise.
1 opengt
2 set com 115200n81
3 set senddelay 0.02
4 waitquiet 1 0.2
5
6 :start
7 flash 0.1
8
9 :getuser
10 let $u=$env("USER")
11 let a=len($u)
12 if a=0 goto continue
13
14 :getpass
15 let $p=$env("PASS")
16
17 :auth
18 print "User: ",$u,"\n"
19 print "Pass: ",$p,"\n"
20 send "AT$QCPDPP=1,1,\""
21 send $p
22 send "\",\""
23 send $u
24 send "\"^m"
25 waitfor 2 "OK"
26 if % = -1 goto error
27 if % = 0 goto continue
28
29 :error
30 exit 1
31
32 :continue
33 exit 0

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20