Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 2004 09:47:49 -0700 (PDT)
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        Stephan van Beerschoten <stephanb@whacky.net>
Cc:        questions@freebsd.org
Subject:   Re: dhclient with reconfigured SSID
Message-ID:  <20040628094208.K92233@skutsje.san.webweaving.org>
In-Reply-To: <40E04C77.7000500@whacky.net>
References:  <40DF3FBF.8060400@whacky.net> <20040628055242.E3532@skutsje.san.webweaving.org> <40E04C77.7000500@whacky.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040628094208.K92233>