Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 11:55:15 -0800
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org, yuri@rawbw.com
Subject:   Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?
Message-ID:  <200906111155.15644.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <4A315B15.5030000@rawbw.com>
References:  <4A315B15.5030000@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 11 June 2009 11:29:25 Yuri wrote:
> I can't find any references in rc.conf(5) on how to set up ifconfig line
> if SSID has spaces which is very typical situation.
> ifconfig(8) doesn't mention this either but it works if I put quotes
> around it.

So escape use and escape the quotes with a backslash. You may need more then 
one backslash, depending on the level of evaluation in /etc/rc.subr and 
/etc/rc.d/netif.

> I would assume spaces should be substituted for '_' like in Linux. But I
> remember I wasn't able to make it work for some reason.

The reason probably being that underscores are different characters from 
spaces and FreeBSD not making assumptions on things really being other things.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111155.15644.mel.flynn%2Bfbsd.questions>