Date: Sat, 30 Oct 2010 15:44:58 -0500 From: Adam Vande More <amvandemore@gmail.com> To: Doug Barton <dougb@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Space character in rc.conf variable Message-ID: <AANLkTi=xhKjS42CKAREhkpjA-GJkSjz6J33pyY1LDONz@mail.gmail.com> In-Reply-To: <4CCC7C07.8080903@FreeBSD.org> References: <AANLkTinQ6QpKacJLnKU=zgSYMo-NG7PajG26wBVxw0PR@mail.gmail.com> <4CCC7C07.8080903@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 30, 2010 at 3:11 PM, Doug Barton <dougb@freebsd.org> wrote: > On 10/30/10 11:56, Harald Servat wrote: > >> Hello -hackers, >> >> (although this is a network topic, I think this may be the appropiate >> list >> to ask. If you think it's not, please, tell me) >> >> I'm trying to configure my wifi SSID within /etc/rc.conf in FreeBSD 8.1 >> amd64 , but I've found that I'm unable to get it working at boot time >> (although I can do it after boot in cmd line). >> >> My SSID has an space character and I don't know how to deal with it. So >> my >> question is easy, how do I add an space in the SSID? I've tried wrapping >> the >> SSID using \" , \' also adding \(space), changing " for ' and others >> without >> success. >> >> As an example my rc.conf entry looks like >> ifconfig_wlan0="ssid SSID WITH SPACE dhcp" >> and after booting I see that ifconfig tried to connect to SSID instead >> to >> "SSID WITH SPACE". >> >> As I said, if I run ifconfig wlan0 ssid "SSID WITH SPACE" from the >> command >> line, works fine. >> > > The best solution would be to change the SSID to one without spaces. :) > > If you can't or won't do that, one of these should work, please report back > which one does: > > ='ssid "ssid with space" DHCP' > ='ssid \"ssid with space\" DHCP' > ="ssid 'ssid with space' DHCP" > ="ssid \'ssid with space\' DHCP" > I changed the ssid to an ascii representation, and it worked. Can't remember if it was decimal or hex though. -- Adam Vande More
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=xhKjS42CKAREhkpjA-GJkSjz6J33pyY1LDONz>
