rc.conf when ssid has spaces in it: missing documentation or
mel.flynn+fbsd.questions at mailing.thruhere.net
Thu Jun 11 21:20:15 UTC 2009
On Thursday 11 June 2009 12:03:56 Yuri wrote:
> Mel Flynn wrote:
> > 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 believe documentation should describe this since this is a major
> element of setting wireless network up.
> If that's more than one backslash that's bad since it makes it cryptic.
> I will investigate and will file a PR with patch.
Knowledge of how sh treats variables is assumed for any unix admin. The level
of escaping might be cryptic to some, but using sh -x /etc/rc./netif start
<ifname> one can easily trace how the ifconfig_<ifname> variable is evaluated
and where the backslashes are consumed.
More information about the freebsd-questions