From owner-freebsd-rc@FreeBSD.ORG Sat Apr 24 03:00:36 2010 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A89AA106566C for ; Sat, 24 Apr 2010 03:00:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B73848FC16 for ; Sat, 24 Apr 2010 03:00:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o3O2x5NY028627; Fri, 23 Apr 2010 20:59:06 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 23 Apr 2010 20:59:23 -0600 (MDT) Message-Id: <20100423.205923.825269116351824344.imp@bsdimp.com> To: yanefbsd@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: rc@FreeBSD.org Subject: Re: Specifying a precedence order for wireless AP stations in rc.conf? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2010 03:00:36 -0000 In message: Garrett Cooper writes: : Hi rc folks, : I use my Lenovo laptop at work and at home and it's kind of : annoying to have to do into rc.conf every time I go to work or go home : to comment out lines choosing an appropriate network for : ifconfig_wlan0 in rc.conf(5) to connect to the appropriate wireless : network. So I figured that I'm probably doing something wrong so I : should ask. : The documentation for ifconfig_wlan* in the handbook [1] and the : rc.conf(5) manpage [2] for 8-STABLE don't suggest that connectivity : for multiple networks can be performed whereas multiple networks can : be specified in wpa_supplicant.conf. Is it at all possible to provide : a precedence list for what SSID networks to attempt to configure via : wpa_supplicant(8) by default, or are further enhancements required in : either wpa_supplicant(8) or rc.network to get this to function? : Thanks, : -Garrett : : 1. http://www.freebsd.org/doc/en/books/handbook/network-wireless.html : 2. http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5 wpa_supplicant will allow you to set the order of SSIDs that it associates with. It is the order they are in in the wpa_supplicant.conf file. What else do you need? Warner