All pastes #103196 Raw Edit

xSmurf

public text v1 · immutable
#103196 ·published 2006-07-28 04:57 UTC
rendered paste body
$ cat /etc/ppp/ip-up 
#! /bin/sh

if [ $1 == "pppoe0" ]; then 
 /sbin/route add default $5
fi

/etc/rc.d/ntpd restart 
/etc/rc.d/named restart
/etc/rc.d/rinetd restart

/sbin/ipf -y

if [ $1 == "pppoe0" ]; then 
        /usr/pkg/bin/ez-ipupdate -c /usr/pkg/etc/ez-ipupdate.pppoe0
fi
if [ $1 == "pppoe1" ]; then 
        /usr/pkg/bin/ez-ipupdate -c /usr/pkg/etc/ez-ipupdate.pppoe1
fi