#!/bin/sh # PPP-script made by Simon Josefsson . tmpfile=/tmp/ppp.script.$$ source /etc/ppp/provider export TELEPHONE LOGIN LOGINSTR PASSWORD PASSWORDSTR PPPCOMMANDSTR PPPCOMMAND if test -n "$USEPAP"; then PAP="name $PAPLOGIN remotename $USEPAP" fi umask 0177 cat<$tmpfile TIMEOUT 5 ABORT BUSY ABORT "NO DIAL TONE" ABORT \nRINGING\r\n\r\nRINGING\r ABORT "NO CARRIER" "" \r\rATZ OK-+++\c-OK ATH0 TIMEOUT 60 OK ATDT$TELEPHONE CONNECT \n TIMEOUT 40 $LOGINSTR $LOGIN $PASSWORDSTR $PASSWORD $PPPCOMMANDSTR $PPPCOMMAND EOF exec /usr/sbin/pppd -detach debug lock modem crtscts /dev/modem 57600 \ noipdefault netmask 255.255.255.0 defaultroute $PAP \ connect "/usr/sbin/chat -v -f $tmpfile" disconnect "rm -f $tmpfile" &