openrc-discuss

Re: /etc/conf.d/net - postup functionality?

Roman v. Gemmeren

Fri Aug 28 18:04:00 2009

Hi,

On Thursday 27 August 2009 15:09:00 Ed W wrote:
> Yeah, everything is man pages - once I realised that a lot more info
> turned up.  I think a page just linking to all the (web version) man
> pages would be extremely cool...
>
> Try man dhcpcd and dhcpcd.conf
>
> Does that help?
>
> Ed W
Ok, after digging more into the dhcpcd-hooks manpage, i found a solution;)
Apparently dhcpcd has the following 2 options:

#-
     script script
             Use script instead of the default /lib/dhcpcd/dhcpcd-run-hooks.

     ssid ssid
             Subsequent options are only parsed for this wireless ssid.
#-

Last time i checked ssid wasn't in there....
So the rest is pretty simple... i added the following to my /etc/dhcpcd.conf:
#-
ssid NETWORKID
	script /usr/local/sbin/custom-vpnc
#-

This seems to work fine here, tough i have only tested it once..


greetings,
Roman v. Gemmeren
-- 
Isn't it nice that people who prefer Los Angeles to San Francisco live there?
		-- Herb Caen

Follow-Ups:
Re: /etc/conf.d/net - postup functionality?Roman v. Gemmeren
References:
/etc/conf.d/net - postup functionality?Roman v. Gemmeren
Re: /etc/conf.d/net - postup functionality?Roman v. Gemmeren
Re: /etc/conf.d/net - postup functionality?Ed W
Archive administrator: postmaster@marples.name