lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 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 |