From owner-freebsd-questions@FreeBSD.ORG Thu Oct 21 04:04:57 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 A3C4616A4CE for ; Thu, 21 Oct 2004 04:04:57 +0000 (GMT) Received: from starling.mail.pas.earthlink.net (starling.mail.pas.earthlink.net [207.217.120.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84BF443D48 for ; Thu, 21 Oct 2004 04:04:57 +0000 (GMT) (envelope-from algould@datawok.com) Received: from 31-21.lctv-ubr2-blk1.cablelynx.com ([206.255.31.21] helo=[192.168.63.10]) by starling.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1CKUC9-0003v5-1r; Wed, 20 Oct 2004 21:04:57 -0700 From: "Andrew L. Gould" To: e.schuele@computer.org Date: Wed, 20 Oct 2004 23:05:15 -0500 User-Agent: KMail/1.6.2 References: <200410201022.26723.e.schuele@comcast.net> <200410201147.53705.algould@datawok.com> <200410202133.58236.e.schuele@comcast.net> In-Reply-To: <200410202133.58236.e.schuele@comcast.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410202305.15306.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b27205054e242aa29f8383c9133b6a1d5350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 206.255.31.21 cc: freebsd-questions@freebsd.org Subject: Re: Cardbus Atheros 5212 and Dell laptop(s)... 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: Thu, 21 Oct 2004 04:04:57 -0000 On Wednesday 20 October 2004 09:33 pm, Eric Schuele wrote: > On Wednesday 20 October 2004 11:47 am, Andrew L. Gould wrote: > > I'm using the following atheros products successfully: > > > > D-Link DWL-G520 (pci in a generic desktop running FreeBSD 5.3RC1) > > D-Link DWL-G650 (pccard in a Dell Inspiron 8100 running FreeBSD > > 5.2.1) > > I went out a grabbed a DWL-G650. It needed a little encouragement, > but not much. It began _trying_ to associate immediately.. but kept > flip flopping from b/g/b/g... so I forced it to g and it works fine. > Not sure what was up with the Blitzz cards. They have the same > chipset. > > > FYI: D-Link is displaying the Atheros logo on the retail boxes of > > its atheros chipset products; which should make purchasing these > > easier. > > > > I use the script below, with a real wep code and different IP > > addresses, for each of these devices. Other than setting hostname > > info in /etc/rc.conf and /etc/hosts, I haven't edited any other > > network configuration files. > > > > (Beware the effects of email wordwrap.) > > I have not tried the script yet, but would like to. I'm still a bit > new to BSD/*nix.... How does it work? Its under the rc.d folder so > it runs automagically right. Who/what provides the parameter you > switch on? and under what circumstances would each case get executed? > /snip/ > > Thanks for the help! I put the script under /usr/local/etc/rc.d/. FreeBSD will attempt to execute any file in that directory that ends with .sh during bootup and shutdown. During bootup, it will execute the file with the argument "start". During shutdown, it will execute the file with the argument "stop". In the script's current state, ath0 is configured at bootup with a static IP address. To use dhcp after bootup, root would have to execute the following commands: /usr/local/etc/rc.d/ath0 stop /usr/local/etc/rc.d/ath0 dyn The first command would undo the static IP configuration. The second command would execute dhclient per the "dyn" section of the script. If you wanted to use dhcp at bootup, you would have to change "start)" to something else; and then change "dyn)" to "start)". Please note that if your using the script for a pccard, the card needs to be inserted prior to bootup for configuration to occur automatically. If not, "/usr/local/etc/rc.d/ath0 start" would need to be executed manually after bootup. I hope this helps. Andrew Gould