#!/bin/sh
# A chat script to login to a PPP server, using 'ispcost'.
# This script is called with the phone number in $1.

# Note that this script does not expect any prompts for the server.
# The PAP protocol automagically handles the password.
# Add any init strings needed according to your modem manual.
/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' \
 "" ATZ OK ATDT$1 CONNECT

# If your ISP's server supplies a 'Login:' prompt, do not use the above.
# Rather use something like
# /usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' \
# "" ATZ OK ATDT$1 CONNECT "" ogin: yourusername word: yourpassword
# Remember to insert your own username and password
