dhcpcd-discuss

Re: dhcpcd + vpnc automation?

Roy Marples

Tue Sep 01 20:44:08 2009

Hi!

On Tuesday 01 September 2009 13:02:19 Roman v. Gemmeren wrote:
> dhcpcd.conf:
> ...
> ssid vpnnetwork
> 	script /usr/local/sbin/50-vpn

...

>
> But after the script has run /etc/resolv.conf is empty again...
>
> Is dhcpcd somehow preventing vpnc from altering the file, or am i using
> sth. wrong?

If you use the script option, then none of the supplied hooks will work - 
including the one that sets resolv.conf.

Maybe you need to create an enter-hook script?
See dhcpcd-run-hooks(8) for details.

Thanks

Roy

Follow-Ups:
Re: dhcpcd + vpnc automation?Roman v. Gemmeren
References:
dhcpcd + vpnc automation?Roman v. Gemmeren
Archive administrator: postmaster@marples.name