#!/bin/bash
# I snipped everything from line 2 through to where it tests for no arguments
#
killall -INT pppd 2>/dev/null
rm -f /var/lock/LCK* /var/run/ppp*.pid
(/usr/sbin/pppd -detach connect "/usr/sbin/chat -v -f /etc/ppp/pppscript" &) || exit 1
#read
#ifconnect
# The next line was exit 0
route del default eth0
route add default ppp0
exit 0

Ted Gervais wrote:
> 
> On Sun, 6 Dec 1998, Mike wrote:
> >
> > > When I 'ppp-on' and/or 'ppp-off':
> > >
> > > What does
> > >
> > > SIOCADDRT: No such device
> > >     &
> > > SIOCDELRT: No such device
> > >
> > > mean ?
> >
> > The first means that you are trying to add a route to a non-existant
> > network devive, the second that you are trying to remove a non-existant
> > route.  My guess is that the ppp-on and -off scripts are doning things in
> > the wrong order, and trying to add/remove routes while the ppp interface
> > is not up.
> >
> > --
> > Mike <[EMAIL PROTECTED]>
> 
> I wonder if you could tell me where to put 'route' statements in the pppd
> files so they were be installed on the ppp port (ppp0) when it comes up.
> I currently use the ppp-go and ppp-off and do need to add a couple of
> statements (routes) when the connection is made. I type them in right now
> but surely to god they can be added somewhere? Or can they?
> 
> ----
> Ted Gervais <[EMAIL PROTECTED]>

Reply via email to