From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 09:41:04 2003 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 114C816A4B3 for ; Tue, 30 Sep 2003 09:41:04 -0700 (PDT) Received: from firecrest.mail.pas.earthlink.net (firecrest.mail.pas.earthlink.net [207.217.121.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B45E43FDD for ; Tue, 30 Sep 2003 09:41:03 -0700 (PDT) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by firecrest.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1A4NYa-0001IY-00; Tue, 30 Sep 2003 09:41:00 -0700 From: "Andrew L. Gould" To: Frank Bonnet Date: Tue, 30 Sep 2003 11:41:01 -0500 User-Agent: KMail/1.5 References: <20030930110349.A14431@bart.esiee.fr> <200309300737.47020.algould@datawok.com> <3F79AA6D.2080006@esiee.fr> In-Reply-To: <3F79AA6D.2080006@esiee.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309301141.01838.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4bab5ca9a5d72276792e96800817587242350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-questions@FreeBSD.org Subject: Re: WI-FI stuff ? 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: Tue, 30 Sep 2003 16:41:04 -0000 On Tuesday 30 September 2003 11:08 am, Frank Bonnet wrote: > >Best of luck, > > > >Andrew Gould > > it's working ! ... except I cannot use DHCP for the moment to bootup the > client > but if I enter an IP address manually it works Since I need various wifi configurations on my laptop, I use startup scripts in /usr/local/etc/rc.d. They are turned off (that is, they don't end in '.sh') so that I can choose the configuration manually after bootup. The text to /usr/local/etc/rc.d/wi0.dhcp.sh.off is below. It assumes that the laptop is a client to an access point that uses WEP. Replace the ssidname and wepkey in the start section. Change 'wi0' to the interface device, if needed. If you want it to start at bootup, rename the file without the '.off'. #!/bin/sh # /usr/local/etc/rc.d/wi0.dhcp.sh.off # Configure wireless interface using DHCP case $1 in start) ifconfig wi0 ssid "ssidname" authmode "shared" nwkey 0xaaaaaaaaaa dhclient wi0 echo ' wi0' ;; stop) kill `cat /var/run/dhclient.pid` ifconfig wi0 remove echo ' wi0 removed' ;; status) ifconfig wi0 ;; *) echo 'usage: /usr/local/etc/rc.d/wi0.dhcp.sh.off [start|stop|status]' ;; esac