#! /bin/sh
# A demand dialing script
# Replace ttySx with your modems device file, xxx-xxxx with your ISP's
# telephone number, xxxxxxx with your ISP username, and X with  whatever
# idle time time you choose.  Add or change any options as required to
# connect and let the ISP start ppp on it's end.
#
# Configure the /etc/ppp/{chap,pap-secrets files for PAP and CHAP with
# the ISP, username, and secret.  Read man pppd and man chat for insite
# into the options.
#
# The -detach is optional, if you don't want the option of canceling  pppd
# at the console with a CTRL C then you can leave it off (if you do,  then
# remember to remove the last '\').
#
# In order to terminate pppd in the demand mode you need to do at  least a
# "kill -INT `pidof pppd`" or equivalent.  This is not the same as
# terminating the PPP connection in the demand mode, which can be done
# with a "kill -HUP `pidof pppd`" or equivalent.
#
# Any 2 reserved IP addresses can be used as placemarkers for the ISP
# assigned IP addresses instead of the 192.168.0.1:192.168.0.2, and
# for pppd 2.3.11 and greater, the placemarker IP address option is
# un-necessary.
# numbers supposed to be good for Weston  2697734(56k)
# number usable in Weston = Buchannon 4717000(56k)
# numbers good in Clarksburg 6244634 (56k), 6262001(33k), 6261350(33k)
exec /usr/sbin/pppd connect '/usr/sbin/chat -v ABORT "NO DIALTONE" \
ABORT BUSY ABORT "NO CARRIER" ABORT "PROTOCOL: NONE" ABORT ERROR \
"" ATZ OK\\r ATDT2697734 CONNECT\\s \\c' \
/dev/ttyS0 user gene_heskett 115200 lock crtscts connect-delay 2000 \
asyncmap 0xa0000 defaultroute demand idle 630 holdoff 15 maxfail 500 \
ipcp-accept-local ipcp-accept-remote noipdefault -detach


