From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 30 20:11:53 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C510310656FA for ; Sat, 30 Oct 2010 20:11:53 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 5211B8FC15 for ; Sat, 30 Oct 2010 20:11:53 +0000 (UTC) Received: (qmail 32752 invoked by uid 399); 30 Oct 2010 20:11:52 -0000 Received: from localhost (HELO doug-optiplex.ka9q.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 30 Oct 2010 20:11:52 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4CCC7C07.8080903@FreeBSD.org> Date: Sat, 30 Oct 2010 13:11:51 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101028 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Space character in rc.conf variable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 20:11:53 -0000 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" hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/