#!/bin/sh # # 02/20/98 DKH - Now a nice little automated CAPTURE registration script # Left most of the variables even though they do nothing... # 10/10/97 DKH - Converted to handle Solaris with pppd (added variables) # 01/26/96 DKH - REALLY simple ppp connect script # User customizable variables PPPD=/usr/local/bin/pppd CHAT=/usr/local/bin/chat CHATSCRIPT=${HOME}/bin/register_chat_script SPEED=38400 # Modem speed ## # Choose one version from each of the following sets ## # Van Jacobson Header compression (You should use it if you can) VJ=novj # Don't use VJ compression (Free modem pool) #VJ=vj # Use VJ compression (Pay pool only) # Serial port to use MODEM=/dev/cua/a # Com 1 #MODEM=/dev/cua/b # Com 2 # Tell chat weather or not you want to see the modem and password negotation #CHATDEBUG= # Don't dump chat in/out to screen CHATDEBUG=-e # Dump Chat in/out to screen # Use this to see debuggin output at the PPP level. Very verbose! # If you turn this on, read the man page for syslog.conf and use # the facility "daemon" and level "debug." #PPPDDEBUG=nodebug # Set PPPD debugging off PPPDDEBUG=debug # Set PPPD debugging on ## ## Now lets get connected CNTR=1 while [ true ] do # Print out the date/time so we know when we connected. echo "Attempt ${CNTR} at `date`" ${PPPD} ${VJ} connect "${CHAT} ${CHATDEBUG} -f ${CHATSCRIPT}" ${MODEM} ${SPEED} ${OPTIONS} modem defaultroute noipdefault nodetach ${PPPDDEBUG} CNTR=`expr ${CNTR} + 1` sleep 1 done