#!/bin/sh
###################################################################
#
# Script to dial the remote system, negotiate the connection, and send
# it the id. Then wait for the modem to disconnect. Reset the modem
# to answer mode and wait for the system to call back.
#
# The telephone number and modempass are used when establishing the
# connection to the modem.
#
PHONE=555-1212
MODEMPASS=modem_identifier
#
# Once the modem calls back, the account name and password are used for
# a UNIX style login operation.
#
ACCOUNT=my_account_name
PASSWORD=my_password

###################################################################
#
# Step 1. Dial the modem and negotiate the initial dialog.
#         note: the modem is configured to ignore loss of DCD at this point.
#         it is important that this be performed because the loss of DCD
#         will normally prevent system from working since 'modem' is used
#         for pppd.
#
#         The script is terminated normally when the carrier is lost.
#
chat -v	                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             