Spaces in SSID in /etc/rc.conf

Murray Taylor MTaylor at bytecraft.com.au
Tue May 15 02:26:39 UTC 2007


 

> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org 
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of 
> Gunther Mayer
> Sent: Tuesday, 15 May 2007 5:46 AM
> To: freebsd-questions at freebsd.org
> Subject: Spaces in SSID in /etc/rc.conf
> 
> Hi there,
> 
> I got a low key server who is wirelessly connected to the net 
> using an 
> SSID that contains a space. In rc.conf I define the ifconfig line for 
> configuration of my wireless interface upon bootup, but the 
> entire line 
> reads something like
> 
> ifconfig_ath0=' inet 192.168.0.1 ssid "my network" '
> 
> No matter how I tweak the quotes (single then double, other 
> way round, 
> with lots of \\) I never get my interface to configure properly upon 
> bootup and I need to get to the console to fix it up. I 
> thought I knew 
> shell syntax but this is beyond me or manpages...
> 
> What's the right way to do this?
> 
> Gunther

Have you tried this (I havent, its just a suggestion)...

I use this construct to get around scp transfers and the
file names windoze users love to create with heaps of spaces...


ifconfig_ath0=' inet 192.168.0.1 ssid "my\ network" '


If there are multiple spaces then you need to slash each one, i.e.

> ifconfig_ath0=' inet 192.168.0.1 ssid "my\ \ network" '

Give it a shot ;-)

mjt
---------------------------------------------------------------
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---------------------------------------------------------------

### This e-mail message has been scanned for Viruses by Bytecraft ###


More information about the freebsd-questions mailing list