#!/bin/sh
# /usr/etc/ppp
# Orginally written & designed by John Gotts (jgotts@engin.umich.edu)
# Rewritten & improved by Johnny Yuma (halo@engin.umich.edu)
# Date: Fri Mar 31 19:24:00 EST 1995

# Set this to your UUCP lock file...
LOCKFILE=/usr/spool/uucp/modem

# Set this to the commandline you use to connect to your provider.
# Note: This must be in single quotes. e.g. `ppp.chat`
CHATLINE=ppp.chat

# Set this to your desired IP address, or set it to nothing if you don't want
# to query for an IP. Syntax: 'local-ip:remote-ip', blank if left default.
IPQUERY=

# Set this to your serial speed
SERSPEED=38400

# Set this to the device which you wish to connect via. e.g. /dev/modem
DEVICE=/dev/modem

# Set this to the filename which includes your uniquename@realm<CR>password<CR>
# Used for authentication.
AUTHFILE=ppp.michnet.user

# Remove the lockfile
rm -f $LOCKFILE

# Change directorys to where the pppd dist. stores the pppd binary.
cd /usr/etc

# Inform the user of what's happening.
echo "ppp0 link becomming active"

# Run the commandline and pray that everything works out. :)
./pppd connect $CHATLINE $IPQUERY $DEVICE $SERSPEED crtscts modem defaultroute asyncmap 0 +ua $AUTHFILE

