summaryrefslogtreecommitdiff
path: root/scripts/ppp-on-dialer
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1998-03-26 03:02:38 +0000
committerPaul Mackerras <paulus@samba.org>1998-03-26 03:02:38 +0000
commit0986fac0d4b42ade44f889ccc107b3ba5af58c5a (patch)
tree42f675b9b1ed4a112013073030603e24bd88fd2a /scripts/ppp-on-dialer
parentbc665e2d682d4318b607dc7e7c46b8b3f6273bf2 (diff)
downloadppp-0986fac0d4b42ade44f889ccc107b3ba5af58c5a.tar.gz
*** empty log message ***
Diffstat (limited to 'scripts/ppp-on-dialer')
-rwxr-xr-xscripts/ppp-on-dialer17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/ppp-on-dialer b/scripts/ppp-on-dialer
new file mode 100755
index 0000000..7d66765
--- /dev/null
+++ b/scripts/ppp-on-dialer
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# This is part 2 of the ppp-on script. It will perform the connection
+# protocol for the desired connection.
+#
+exec chat -v \
+ TIMEOUT 3 \
+ ABORT '\nBUSY\r' \
+ ABORT '\nNO ANSWER\r' \
+ ABORT '\nRINGING\r\n\r\nRINGING\r' \
+ '' \rAT \
+ 'OK-+++\c-OK' ATH0 \
+ TIMEOUT 30 \
+ OK ATDT$TELEPHONE \
+ CONNECT '' \
+ ogin:--ogin: $ACCOUNT \
+ assword: $PASSWORD