From owner-freebsd-questions@FreeBSD.ORG Mon Jun 28 16:57:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 810E816A4D0 for ; Mon, 28 Jun 2004 16:57:25 +0000 (GMT) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4187443D1F for ; Mon, 28 Jun 2004 16:57:23 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (localhost [127.0.0.1]) i5SGlnwT005085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Jun 2004 09:47:49 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost)i5SGln8V005082; Mon, 28 Jun 2004 09:47:49 -0700 (PDT) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Mon, 28 Jun 2004 09:47:49 -0700 (PDT) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: Stephan van Beerschoten In-Reply-To: <40E04C77.7000500@whacky.net> Message-ID: <20040628094208.K92233@skutsje.san.webweaving.org> References: <40DF3FBF.8060400@whacky.net> <20040628055242.E3532@skutsje.san.webweaving.org> <40E04C77.7000500@whacky.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org Subject: Re: dhclient with reconfigured SSID X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 16:57:25 -0000 On Mon, 28 Jun 2004, Stephan van Beerschoten wrote: > Will this lock the ssid during reboots as well ? If not, that actually > is what I am looking for. Ah - ok - putting into /etc/r.conf ifconfig_wi0="ssid foo" will lock it during/after reboots; but kills the DHCP. Options are - Do above but add dhclietn wi0& to your /etc/rc.local - Leave ifconfig_wi0=DHCP in rc.conf and do a 'man dhclient-script' and accordingly create a /etc/dhclient-enter-hooks with the text #!/bin/sh ifconfig wi0 ssid f00 add 'if [ "x${interface}" = "xwi0" ]; then' ..'fi' around it if you want it only to happen for wi0. What the second option does is run an extra script early in the dhcp cycle whcih sets your interface to the right ssid. Dw