guowenxue
2024-09-26 2b179f80693db10cb5a93ee649917ae6988feaf2
commit | author | age
281a7f 1 # FILE:/etc/ppp/gprs-chat
G 2 # Copyright (C) 2011 GuoWenxue <guowenxue@gmail.com>
3 # This is second part of the ppp dial script. It will perform the connection
4 # protocol for the desired connection by chat with modem.
5 #
6         ABORT           'BUSY'                             
7         ABORT           'NO ANSWER'                        
8         ABORT           'NO CARRIER'                       
9         ABORT           'NO DIALTONE'                      
10         ABORT           'ERROR'                            
11         ABORT           '\nRING\r\n\r\nRING\r'             
12         TIMEOUT         20                                 
13         ''              ATE0                    
14         OK              AT+CGDCONT=1,"IP","$APN"
15         OK              ATD$DIALNUM                      
16         SAY             " + requesting data connection\n"  
17         CONNECT         ''                                 
18         SAY             " + connected\n"