blob: 7d66765f1bb613185cb3f06c3449148f557a99f8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/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#
6exec 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