]> git.ozlabs.org Git - ppp.git/blob - scripts/ppp-on-dialer
Merge branch 'pppd_print_changes' of https://github.com/nlhintz/ppp into nlhintz...
[ppp.git] / scripts / ppp-on-dialer
1 #!/bin/sh
2 #
3 # This is part 2 of the ppp-on script. It will perform the connection
4 # protocol for the desired connection.
5 #
6 exec chat -v                                            \
7         TIMEOUT         3                               \
8         ABORT           '\nBUSY\r'                      \
9         ABORT           '\nNO ANSWER\r'                 \
10         ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
11         ''              \rAT                            \
12         'OK-+++\c-OK'   ATH0                            \
13         TIMEOUT         30                              \
14         OK              ATDT$TELEPHONE                  \
15         CONNECT         ''                              \
16         ogin:--ogin:    $ACCOUNT                        \
17         assword:        $PASSWORD