comgt-3g: enable modem before to setpin
[openwrt/openwrt.git] / package / network / utils / comgt / files / directip-stop.gcom
1 opengt
2 set com 115200n81
3 set comecho off
4 set senddelay 0.05
5 waitquiet 1 0.2
6
7 :start
8 send "AT!SCACT=0,3^m"
9 waitfor 5 "OK"
10 if % = 0 goto hangupok
11 print "WWAN error. Hangup failed.\r\n"
12 exit 1
13
14 :hangupok
15 print "WWAN connection established.\r\n"
16 exit 0