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 1QA281-0004Ep-9f for garchives@archives.gentoo.org; Wed, 13 Apr 2011 15:37:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E22D1C013; Wed, 13 Apr 2011 15:35:40 +0000 (UTC) Received: from mail-yi0-f53.google.com (mail-yi0-f53.google.com [209.85.218.53]) by pigeon.gentoo.org (Postfix) with ESMTP id CCCDD1C013 for ; Wed, 13 Apr 2011 15:35:40 +0000 (UTC) Received: by yia25 with SMTP id 25so447640yia.40 for ; Wed, 13 Apr 2011 08:35:40 -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 :in-reply-to:user-agent; bh=sbG0tPIcFZ7/jPOCt/s1maQxkl05CSzwKWFoUA0XmAs=; b=b8BWxrfajrK7Bgs4eJl+cqV0FMbxqky2HLgklbgMaA5im+3JhmHDqqgec0AkfjbV8r cHuOD8SU/SR4iUJSu39Agog+ruteGphFY2Dn4cKCKfwyfaW5T1XMd5UAw6SNUDqwCI0m 4W9fhUoT6m6MOA7cY3cwI8AOGX90k5uH5Zydw= 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:in-reply-to:user-agent; b=I/25pVW70Y0LF+l70iE2OsZ2iguwiMimPabUvCmcKskgoNOqFAP6GxRV1umeN6MCZJ 9He2xd48iRMTDfIGq0F7YmytpAs40P1F+WwghpB2PES+PgMqU9qcXDWVvHmbzkfkwEC9 9tJ/lCa4zAyb4Fz8lHwHMWyZGUFSc/k5jMMxA= Received: by 10.236.70.170 with SMTP id p30mr1326957yhd.275.1302708940193; Wed, 13 Apr 2011 08:35:40 -0700 (PDT) Received: from gaurahari (adsl-152-79-247.asm.bellsouth.net [72.152.79.247]) by mx.google.com with ESMTPS id d46sm298203yhn.74.2011.04.13.08.35.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 08:35:37 -0700 (PDT) Date: Wed, 13 Apr 2011 11:35:34 -0400 From: Indi To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: configure wlan0 route metric Message-ID: <20110413153534.GA13724@gaurahari> References: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 10890cd939a9ef4f16c6041002854c4d On Wed, Apr 13, 2011 at 01:50:02PM +0200, deadeyes wrote: > > I was searching around the gentoo forums for ifmetric and found this piece of > code that can be added in /etc/conf.d/net: > postup() { > local metric=0 > > case "${IFACE}" in > eth0) metric=0 ;; > eth1) metric=1 ;; > esac > ifmetric "${IFACE}" "${metric}" > > return 0 > } > Hey, that works very well here -- thanks! Been wanting that solution for some time now. :) -- /\ /\ <\ /> ^ caveat utilitor 'v-v'