Le 22 mai à 12:15:44 Neil Bothwick <[EMAIL PROTECTED]> a écrit notamment:

> On Sat, 21 May 2005 12:35:45 +0200, Jean Magnan de Bornier wrote:
>
>> I want to execute "ln -sf /etc/resolv.conf.fac /etc/resolv.conf"
>> *before* /etc/init.d/net.eth0, so that if I am at the "fac" (my office)
>> location I have these dns set up, but if I am home with dhcp the
>> resolv.conf file will be overwritten. 
>> Should I add a script in /etc/init.d for that, or is there something
>> simpler?
>
> See the preup() function in /etc/conf.d/net, this is executed before the
> interface is brought up.
>
Thanks Neil, I adopted Walter's solution but I'll look at yours (I will
have to find a fresh /etc/conf.d/net, as I wiped out all unncessary
lines).  :-(

cheers,
-- 
Jean Magnan de Bornier          |       email: jean-at-bornier.net
 

-- 
gentoo-user@gentoo.org mailing list

Reply via email to