#!/bin/sh

# ppp connection script for use with ilsundal's ppp-in-a-box.   replace the 
# following variables with your modem's init string, locked port speed ( most 
# modems will use 38400, if you're using a 56k modem, use 57600 ), destination 
# of your modem (most modems are located in either /dev/modem, /dev/cua0, 
# /dev/cua1, and on some pcmcia modems /dev/ttyS2, etc), service provider's 
# dialup number, and your username. (don't forget to look over pap-secrets, 
# and chap-secrets)
 
export INITSTRING=AT\&F1M0S11=40
export LOCKSPEED=38400
export DEVICE=/dev/modem
export PHONENUMBER=000-0000
export USERNAME=ilsundal

# you shouldn't need to edit anything below this line ...

until (/bin/false) do
until (pppd connect 'chat -v "" AT OK $INITSTRING OK ATDT$PHONENUMBER CONNECT' $DEVICE $LOCKSPEED user $USERNAME) do
  echo PPP connection lost...reconnecting...
done
done
echo /bin/false came out as true somehow. this is messed up. exiting.
echo -e "\a"
