Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 1997 14:30:56 -0500 (EST)
From:      Keith Leonard <keithl@wakko.gil.net>
To:        Michelle Brownsworth <michelle@eugene.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: "Sorry - PPP is not available on this system" msg
Message-ID:  <Pine.LNX.3.95.970113142348.6444B-100000@wakko.gil.net>
In-Reply-To: <v03007801aeff64c81afb@[207.48.96.49]>

next in thread | previous in thread | raw e-mail | index | archive | help
Howdy,

read the other replies and they are correct - you need to rebuild the
kernel to run kernel ppp (no big deal - just follow the handbook):

However the script given are both for shutting down the pppd connection,
the scripts I use are:

for starting pppd and use chat:

#!/bin/sh
ps ax | grep pppd | grep -v grep
PID=`ps ax | grep pppd | grep -v grep | awk '{print $1}'`

if [ "$PID" = "" ]
then
	pppd connect 'chat -v "" ATDTXXXXXXX CONNECT ""\
	Name: XXXXXXXX Password: XXXXXXXXXXXX' \
	/dev/cuaa0 115200 :
fi

and to shut down:

#!/bin/sh
pid=`ps ax | grep pppd | grep -v grep | awk '{print$1;}'`
if [ X${pid} != "X" ] ; then
	echo 'killing pppd, PID=' ${pid}
	kill -INT ${pid}
fi

These seem to work fine for me and others who have finally figured out the
peculiarities of their machines.

On Sun, 12 Jan 1997, Michelle Brownsworth wrote:
> /etc/ppp/pppserv (script to start pppd)
> -----------------
> #!/bin/sh
> ps ax |grep pppd |grep -v grep

> pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
> if [ "X${pid}" != "X" ] ; then
>         echo 'killing pppd, PID=' ${pid}
>         kill ${pid}
> fi
> ps ax |grep kermit |grep -v grep
> pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
> if [ "X${pid}" != "X" ] ; then
>         echo 'killing kermit, PID=' ${pid}
>         kill -9 ${pid}
> fi
> /etc/ppp/pppservdown (script to stop pppd)
> ---------------------
> #!/bin/sh
> ps ax |grep pppd |grep -v grep
> pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
> if [ "X${pid}" != "X" ] ; then
>         echo 'killing pppd, PID=' ${pid}
>         kill ${pid}
> fi
> ps ax |grep kermit |grep -v grep
> pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
> if [ "X${pid}" != "X" ] ; then
>         echo 'killing kermit, PID=' ${pid}
>         kill -9 ${pid}
> fi
> ifconfig ppp0 down
> ifconfig ppp0 delete
> 
> kermit -y /etc/ppp/kermit.noans
> 

Keith
keithl@gil.net
------------------------------------------------------
Character is what you are in the dark - John Warfin
------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.970113142348.6444B-100000>