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