Subject: Re: PPP
To: Jeff Kramer <jeff@itouch.net>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 01/16/1996 10:31:30
> I've seen this asked before, but I'll ask it again:  Has anybody actually
> gotten PPP to work?  I can get SLIP to work, but PPP completely refuses to
> grok.
[other problem deleted - I don't have those programs compiled]

I've got ppp working just fine. I'm enclosing the files which I use,
which someone else sent me. Basically just expand them into /etc/ppp
and then run /etc/ppp/ppp-up to make it all work. :-0

Take care,

Bill

>From paul@pgoyette.bdt.comFri Oct  6 16:35:37 1995
Date: Tue, 3 Oct 1995 18:22:14 -0700 (PDT)
From: Paul Goyette <paul@pgoyette.bdt.com>
To: Bill Studenmund <wrstuden@loki.stanford.edu>
Cc: monroe@teleport.com, noud@knot.nl, leonard@dstc.edu.au
Subject: Re: Newest ser.c & zsvar.h - crtscts works!

Well, I got it to bring up my ppp connection right away!  If it
will help the rest of you, here's my ppp set-up:

---- file: /etc/ppp/options ----
passive
crtscts
defaultroute
lock
lcp-echo-interval 30
lcp-echo-failure 10
netmask 255.255.255.0
domain bdt.com
mtu 1500
name pgoyette
disconnect /etc/ppp/ppp-down

---- file: /etc/ppp/ppp-up ----
#!/bin/sh
# ppp-up - start pppd 
#
PPPDIR=/etc/ppp
NUMBERLIST=$PPPDIR/ppp-numbers
LOGIN=$PPPDIR/ppp-login
CHATSCRIPT=$PPPDIR/ppp-chat
CONNECT=$PPPDIR/ppp-connect
#
p=`cd /proc; grep -l '^pppd' */status | sed 's,^\([0-9]*\)/.*$,\1,'`
#
if [ -n "$p" ]; then
  echo -n pppd is already running...
else
  echo -n connecting...
  pppd /dev/tty00 19200 connect "$CONNECT $NUMBERLIST $LOGIN $CHATSCRIPT"
fi
echo done

---- file: /etc/ppp/ppp-numbers ----
<just a single phone # goes here>

---- file: /etc/ppp/ppp-login ----
s/\$LOGIN/******/g
s/\$PASSWD/********/g

---- file: /etc/ppp/ppp-chat ----
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIAL"
TIMEOUT 10
"" AT
OK-AT-OK AT&FE1V1L1M0&A3&B1
OK ATDT$NUMBER
TIMEOUT 60
REPORT CONNECT
ogin:--ogin: $LOGIN
word: $PASSWD

---- file: /etc/ppp/ppp-connect ----
#!/bin/sh
#
# usage: ppp-connect <number-list> <login> <template chat script>
if [ $# -ne 3 ]
then
  echo 'usage: ppp-connect <number-list> <login> <template chat script>' 1>&2
  exit 1
fi
#
stty -clocal
umask 077
#
NUMBERLIST=`cat $1`
#
NUMBER=${NUMBERLIST%%:*}
NUMBERLIST=${NUMBERLIST#*:}:$NUMBER
#
until (sed -e "s/\$NUMBER/$NUMBER/g" -f $2 $3 >/tmp/chat-script; chat -r /tmp/ppp-report -v -f /tmp/chat-script)
do
  NUMBER=${NUMBERLIST%%:*}
  NUMBERLIST=${NUMBERLIST#*:}:$NUMBER
done
rm -f /tmp/chat-script

---- file: /etc/ppp/ppp-down ----
#!/bin/sh
p=`cd /proc; grep -l '^pppd' */status | sed 's,^\([0-9]*\)/.*$,\1,'`
#
if [ -n "$p" ]; then
  echo -n killing pppd...
  kill $p
  echo done
else
  echo ppp already is down 1>&2
fi