patch for sync support from Paul Fulghum
[mpls-ppp.git] / scripts / ppp-on-dialer
blob7d66765f1bb613185cb3f06c3449148f557a99f8
1 #!/bin/sh
3 # This is part 2 of the ppp-on script. It will perform the connection
4 # protocol for the desired connection.
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