WPA: specify alternate config file in rc.conf

View: New views
6 Messages — Rating Filter:   Alert me  

WPA: specify alternate config file in rc.conf

by Chad Perrin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I want to start wpa_supplicant directly, and specify a particular
configuration file, I can do something like this:

    wpa_supplicant -i iwi0 -c /path/to/wpa_alternate.conf

How would I specify the use of /path/to/wpa_alternate.conf in my rc.conf
ifconfig line, rather than just going with the default
/etc/wpa_supplicant.conf file?

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


attachment0 (203 bytes) Download Attachment

Re: WPA: specify alternate config file in rc.conf

by Paul B Mahol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/2/09, Chad Perrin <perrin@...> wrote:
> If I want to start wpa_supplicant directly, and specify a particular
> configuration file, I can do something like this:
>
>     wpa_supplicant -i iwi0 -c /path/to/wpa_alternate.conf
>
> How would I specify the use of /path/to/wpa_alternate.conf in my rc.conf
> ifconfig line, rather than just going with the default
> /etc/wpa_supplicant.conf file?

Look into /etc/defaults/rc.conf for hint.
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: WPA: specify alternate config file in rc.conf

by jhell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Mon, 2 Nov 2009 17:27, onemda@ wrote:

> On 11/2/09, Chad Perrin <perrin@...> wrote:
>> If I want to start wpa_supplicant directly, and specify a particular
>> configuration file, I can do something like this:
>>
>>     wpa_supplicant -i iwi0 -c /path/to/wpa_alternate.conf
>>
>> How would I specify the use of /path/to/wpa_alternate.conf in my rc.conf
>> ifconfig line, rather than just going with the default
>> /etc/wpa_supplicant.conf file?
>
> Look into /etc/defaults/rc.conf for hint.
>

This is not a option in rc.conf default or otherwise ATM.

The proper place to look for changing this: etc/rc.d/wpa_supplicant where
it is hard-written to the start-up script/routine. This should probably be
something that is handled in the default rc.conf through
wpa_supplicant_flags and a default set for them to start from so it can at
least be changed on a per use basis. I could have swore this was already
in place in earlier sources.

Best regards.

--

  Mon Nov  2 18:49:34 2009 -0500

  jhell
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: WPA: specify alternate config file in rc.conf

by Chad Perrin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 06:57:41PM -0500, jhell wrote:
>
> This is not a option in rc.conf default or otherwise ATM.
>
> The proper place to look for changing this: etc/rc.d/wpa_supplicant where
> it is hard-written to the start-up script/routine. This should probably be
> something that is handled in the default rc.conf through
> wpa_supplicant_flags and a default set for them to start from so it can at
> least be changed on a per use basis. I could have swore this was already
> in place in earlier sources.

Thanks.  In retrospect, I probably should have looked in /etc/rc.d on my
own.  Thanks for pointing me in the right direction.

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


attachment0 (203 bytes) Download Attachment

Re: WPA: specify alternate config file in rc.conf

by Mel Flynn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 03 November 2009 00:57:41 jhell wrote:

> On Mon, 2 Nov 2009 17:27, onemda@ wrote:
> > On 11/2/09, Chad Perrin <perrin@...> wrote:
> >> If I want to start wpa_supplicant directly, and specify a particular
> >> configuration file, I can do something like this:
> >>
> >>     wpa_supplicant -i iwi0 -c /path/to/wpa_alternate.conf
> >>
> >> How would I specify the use of /path/to/wpa_alternate.conf in my rc.conf
> >> ifconfig line, rather than just going with the default
> >> /etc/wpa_supplicant.conf file?
> >
> > Look into /etc/defaults/rc.conf for hint.
>
> This is not a option in rc.conf default or otherwise ATM.

It is on 8.

Looks pretty safe to apply:
svn diff -c 178022 svn://svn.freebsd.org/base/stable/8
--
Mel
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: WPA: specify alternate config file in rc.conf

by Chad Perrin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 04, 2009 at 01:32:39AM +0100, Mel Flynn wrote:
> On Tuesday 03 November 2009 00:57:41 jhell wrote:
> >
> > This is not a option in rc.conf default or otherwise ATM.
>
> It is on 8.

That's good news.  I'll look for it when 8.0 goes into RELEASE, since I
don't really want the laptop I use for work to run a release candidate
OS.

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


attachment0 (203 bytes) Download Attachment