From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 30 21:13:49 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 04FD2106564A; Sat, 30 Oct 2010 21:13:49 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 62CD18FC0C; Sat, 30 Oct 2010 21:13:47 +0000 (UTC) Received: by fxm17 with SMTP id 17so4209076fxm.13 for ; Sat, 30 Oct 2010 14:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=qCw4dJ25nqCpDnWgENoAkjv10URRWUJNBn4Giz0JJPQ=; b=o+xBK17+00TMkcYbiJMsW9FvoJqmkNGKRjlMQNuOgNiefuOBHwimTPo5FXLT5mxfPQ u8gbLNHP/Oc5LHkKyMP2c3Kf289GaoopezX7PJgS+EJAbq4dSW6kXPzG3LsMlQ/KgVUy 7TYqSgSFkY++fib9PXBwjLkl+P6InpgnrR5/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QoF+YMHNYhKJIXxE2aBPPLwPZepZGKWUTZyIT4WQbmloSMoTGBqh8Ec3tQd2WkhGua 86wYUQ384w/I1Uu88XAOczCrkbrWg7nt+pAJ3UIhlZlnvDznIdo5ozZaSH+uv8Rf+COK r6qqsqwBHn6pBMG5UPrDbrQdutRAa28vsr4XU= MIME-Version: 1.0 Received: by 10.223.115.130 with SMTP id i2mr4006131faq.1.1288471498831; Sat, 30 Oct 2010 13:44:58 -0700 (PDT) Received: by 10.223.108.194 with HTTP; Sat, 30 Oct 2010 13:44:58 -0700 (PDT) In-Reply-To: <4CCC7C07.8080903@FreeBSD.org> References: <4CCC7C07.8080903@FreeBSD.org> Date: Sat, 30 Oct 2010 15:44:58 -0500 Message-ID: From: Adam Vande More To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org 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 21:13:49 -0000 On Sat, Oct 30, 2010 at 3:11 PM, Doug Barton 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