From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NBZni-0006ko-Li for garchives@archives.gentoo.org; Fri, 20 Nov 2009 20:09:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6233BE0774; Fri, 20 Nov 2009 20:07:21 +0000 (UTC) Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.149]) by pigeon.gentoo.org (Postfix) with ESMTP id 93B63E0774 for ; Fri, 20 Nov 2009 20:07:20 +0000 (UTC) Received: by ey-out-1920.google.com with SMTP id 3so930220eyh.40 for ; Fri, 20 Nov 2009 12:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=om2ayTaHhNwtAjUbrdyyC9U4QIJinKsK2KLpbod7NAU=; b=F4ScYNvP7B+gTN57wB1+rW05bouCZdViz/FJ7QVJeecHkt9Whg0CFVYjrYBqfmRiK4 9s0EMCeo2ohWXivnevB3d74IJgexYR6HynpHCm3FqAPW1i1VXinKy8HThTlLnL3QqKlk 8PJ7xg5usRAloYhfQ51oii5nM/O2lglq/1BQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=dmYfxv+GT7k7T/vhVknxIHQNgkCwl/NN+uRJEx5hwPJ7ev0zUOoX4eWSxMYLBvrWTY UT7Bkqi360GRA2mQEi7ikadspOZZ6OTdG3T/ECrlzeBXTlZgcJet9X8n4mFzFabtwSqG 46BfPy+0lAjlvlZrbE7dl+AlGbXb/5NGyc5uw= Received: by 10.213.24.24 with SMTP id t24mr622065ebb.16.1258747640039; Fri, 20 Nov 2009 12:07:20 -0800 (PST) Received: from lappy.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id 16sm846715ewy.6.2009.11.20.12.07.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Nov 2009 12:07:18 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] configuring wlan0 Date: Fri, 20 Nov 2009 20:12:33 +0000 User-Agent: KMail/1.12.1 (Linux/2.6.30-gentoo-r8; KDE/4.3.1; i686; ; ) References: <20091117232014.GA6951@anton.digitaltorque.ca> <200911181638.55003.michaelkintzios@gmail.com> <20091118233820.GD6951@anton.digitaltorque.ca> In-Reply-To: <20091118233820.GD6951@anton.digitaltorque.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2029198.21noY7XQBv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200911202012.43948.michaelkintzios@gmail.com> X-Archives-Salt: 0d49183d-fed4-4a2f-bae4-27578c0814cb X-Archives-Hash: 1b932311e37f966701de26f5a4240004 --nextPart2029198.21noY7XQBv Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Wednesday 18 November 2009 23:38:22 Michael P. Soulier wrote: > On 18/11/09 Mick said: > > I don't think that there bugs in conf.d/net just a matter of preference= =2E=20 > > Alan suggested that wicd is a simpler way to have your wireless > > configured and it does not need /etc/init.d/*net scripts to function. > > > > I am running wpa_supplicant: > > > > modules=3D( "wpa_supplicant" ) > > > > wpa_supplicant_ath0=3D"-Dwext" > > > > and it just works??? for my wireless card. > > > > You may want to try something like this in your /etc/conf.d/net: > > > > sleep_scan_wlan0=3D"1" > > > > config_wlan0=3D( "dhcp" ) > > fallback_wlan0=3D( "192.168.0.5 netmask 255.255.255.0" ) > > fallback_route_wlan0=3D( "default via 192.168.0.1" ) > > > > in case there is a dhcp problem with how the router releases IP address > > leases. >=20 > I'm not using dhcp, just a static address.=20 Does your router know this? I'm not being funny, but I had run into a prob= lem=20 sometime in the past where a change in the dhcpcd version caused the router= to=20 not read the NIC MAC address correctly. That created a clash with the IP=20 address lease. > All I want the damn scripts to > do is this >=20 > modprobe ndiswrapper OK, have you looked in your logs/dmesg? I think that the ndiswrapper has t= o=20 load first and probe your NIC, before /etc/init.d/net.wlan0 launches. It m= ay=20 pay to keep an eye on the router logs while your machine boots. My line above with sleep_scan_wlan0=3D"1" or say "3" seconds delay may help= , if=20 this is the problem. > iwconfig wlan0 essid digitaltorque > ifconfig wlan0 192.168.0.5 netmask 255.255.255.0 > route add default gw 192.168.0.1 >=20 > After looking at the net.example again maybe I need this >=20 > modules=3D( "ifconfig" "iwconfig" "!wpa_supplicant" ) If you have not installed wpa_supplicant you don't need this. Just make su= re=20 #modules=3D( "wpa_supplicant" ) is commented out. iwconfig is the default= =20 anyway. ifconfig or iproute2 will work so I don't think that you need to=20 define that either. Your entries: essid_wlan0=3D"digitaltorque" config_wlan0=3D( "192.168.0.5/24" ) routes_wlan0=3D( "default via 192.168.0.1" ) are correct - so the error is not because of these. > Or maybe I should just run an rc.local script. You could use the preup scripts in /etc/conf.d/net, if for some reason the= =20 ndiswrapper takes for ever to kick into action. HTH. =2D-=20 Regards, Mick --nextPart2029198.21noY7XQBv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEABECAAYFAksG+DsACgkQVTDTR3kpaLbhmQCdE0YBib8kmJFMHKr15aBEkkys 7BsAmgNRFMt1jjhheNvTuPEO6gJXqAdR =F2dz -----END PGP SIGNATURE----- --nextPart2029198.21noY7XQBv--