On Wed, 29 Mar 2000, Bob Kruger wrote:
> I know that I can write a batch script to check every 30 or so second to
> see if the a ppp0 connection is made, and if so, then if there is a
> gateway to the connection, and if not, reestablish it. I would rather
> have this done by pppd.
See /etc/ppp/ip-up. It is called by pppd when the connection
comes up with the arguments:
ifname=$1        # interface name (e.g. ppp0)
ttydevice=$2        # device name (e.g. (/dev/ttyS0)
speed=$3        # speed (as reported by stty
localip=$4        # local (your) ip
remoteip=$5        # remote ip
If you have multiple PPPs, it gets more complex, but in your
case, I'd just have the "route add [mumble]" in this file, and not even
check the args (you probably don't care).
Danny
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.