On Sun, Jan 17, 1999 at 07:39:30PM +0100, Chris Karakas wrote:
> My script does also a few more things, like changing /etc/resolv.conf,
> putting the appropriate dnsserver and search options for my ISP ('cause
> my ethernet PCMCIA card needs different settings ;-)) when I start pppd
> and deleting them when I stop it, so I don't put it all here.
Just as an aside, probably the best place for these is in the
/etc/ppp/ip-up[.local] and /etc/ppp/ip-down[.local] files. The
ip-up script is executed as soon as the ppp link is up and the
IP address is one of the parameters so you can do useful things
like changing /etc/hosts. :-)
imc