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 <gentoo-user+bounces-121680-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QAYSr-0004P7-Ud for garchives@archives.gentoo.org; Fri, 15 Apr 2011 02:08:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3A511C004; Fri, 15 Apr 2011 02:07:03 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id A459F1C004 for <gentoo-user@lists.gentoo.org>; Fri, 15 Apr 2011 02:07:03 +0000 (UTC) Received: by gxk9 with SMTP id 9so1419266gxk.40 for <gentoo-user@lists.gentoo.org>; Thu, 14 Apr 2011 19:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=20OfaPHrZePfmq9kNrUl+I8GeLbT0Xr485p32ePTi8g=; b=GzSO0JdOh/9sTxMB0MBy7t/Wc8y0clTL7offHrS2ZZ15kowGdx7+fV0xwo83fTOyNp FPZoI3XjN7BYYDCW7i0mWKcoxj0ycOqCX7oprh9Dn6YIOYKhnV+NmhhRm+xvvaKEDKBG rk9Lyuk4sRSunDykc+JEIicIZm5bWo1ceSWmw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=N/VPpKcW0OiS9XMpdkP4pMlf/hGFVlwzkhCWJUnF3yFpBw6L4KG/DSaDI41tQ9TAln DGOFQPYEG8sW3V3YIFgFQeFQB5MGBCeoyF6TINN1/jiZiwgsX/Y6Q2RQACGVJ4Bs5c92 owfxL97HUohyjr97OonxqKng2RGghiz9tBJtc= Received: by 10.236.184.10 with SMTP id r10mr282470yhm.235.1302833223055; Thu, 14 Apr 2011 19:07:03 -0700 (PDT) Received: from gaurahari (adsl-152-79-247.asm.bellsouth.net [72.152.79.247]) by mx.google.com with ESMTPS id p62sm1066834yhm.91.2011.04.14.19.07.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 19:07:02 -0700 (PDT) Date: Thu, 14 Apr 2011 22:06:57 -0400 From: Indi <thebeelzebubtrigger@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: configure wlan0 route metric Message-ID: <20110415020657.GA9142@gaurahari> References: <gHakF-8vF-15@gated-at.bofh.it> <gHakF-8vF-17@gated-at.bofh.it> <gHakG-8vF-19@gated-at.bofh.it> <gHakG-8vF-21@gated-at.bofh.it> <gHakG-8vF-23@gated-at.bofh.it> <gHDd0-5d8-25@gated-at.bofh.it> <gHDd0-5d8-27@gated-at.bofh.it> <gHDd0-5d8-23@gated-at.bofh.it> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <gHDd0-5d8-23@gated-at.bofh.it> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: b95ed18798cdd17cdbe423eb4593c9f6 On Fri, Apr 15, 2011 at 12:30:02AM +0200, Indi wrote: > On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote: > > On 14 April 2011 09:13, deadeyes <gvm999@gmail.com> wrote: > > > deadeyes <gvm999 <at> gmail.com> writes: > > > > > > code that can be added in /etc/conf.d/net: > > > postup() { > > > =A0 local metric=3D0 > > > > > > =A0 case "${IFACE}" in > > > =A0 =A0 =A0eth0) metric=3D0 ;; > > > =A0 =A0 =A0eth1) metric=3D1 ;; > > > =A0 esac > > > =A0 ifmetric "${IFACE}" "${metric}" > > > > > > =A0 return 0 > > > } > > > > > > Seems like this works for me as well! :) > >=20 > > It does? I assume that eth1 above is wlan0 in your case. > > >=20 > On my thinkpad the wireless is eth0, wired is eth1. Oh, I got that backwards, sorry -- wireless is eth1. :) --=20 /\ /\=20 <\ /> =20 ^ caveat utilitor=20 'v-v' =20