Be carefull tho, there is a bug in there.  Try these modified scripts,
note the use of basename:

#!/bin/bash
# /etc/ppp/ip-up

export PATH=/sbin:/usr/sbin:/bin:/usr/bin

LOGDEVICE=$6
IFACE=$1
REALDEVICE=`/bin/basename $2`

[ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local $*

exit 0


#!/bin/sh
# /etc/ppp/ip-up.local

IFACE=$1
REALDEVICE=`/bin/basename $2`

#do whatever you want to do here. In my case it is to set up the firewall rules.
/etc/rc.d/rc.firewall.${REALDEVICE}.append ${IFACE}



-- 
Howard.
______________________________________________________
LANNet Computing Associates <http://www.lannet.com.au>

On Thu, 22 Jun 2000, Angus Lees wrote:

> On Thu, Jun 22, 2000 at 02:59:49PM +1000, George Vieira wrote:
> > At the moment, I have to manually do a "route add -host 192.168.0.13/32 dev
> > ppp2 or ppp0 or ppp3" depending where it connects to..
> > 
> > Any ideas? ppp doesn't return where it puts the connection anywhere does it?
> 
> do it in the /etc/ppp/ip-up script, where you get passed the interface
> name as a parameter
> 
> 

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to