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 1QAbIA-00054d-VR for garchives@archives.gentoo.org; Fri, 15 Apr 2011 05:10:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 355E11C005; Fri, 15 Apr 2011 05:08:17 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id C7AC41C005 for ; Fri, 15 Apr 2011 05:08:16 +0000 (UTC) Received: by wwj40 with SMTP id 40so2595631wwj.10 for ; Thu, 14 Apr 2011 22:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:reply-to:to:subject:date:user-agent :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=YQyfML9Y/QJSJxRN9s5zFICYrUjMVAGOJqiYtli3NnM=; b=jQvt6dHxGlR+/trIOIO8c1RblsFq/TNjnhUJ8X/QGybS3kwBz8raWqiqGzGhcjGJhF yt2Zo67cdUD4qzR328lOX5EIu2bIpuLV3l5ASrAW22m6HnplWWi3MN+lADp/MLdRs2dV PMbg9lemGjcIj5/rUXc+V6za9UIfb+KlNiHFw= 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=PxUfNlCfL71Zlz0KOcJ0I4GCKD8byizCg+bxun9tNAM7R9yxbqSEhCFGMSC2rGl1Dh UH2lytskd5FaBq0lC1oPTT5lazXYMEMeY1DaPQI+cljTpK1UMDQL2ogw/HwbseLYnwHL kx4ifHKK3r9JSsJV39FUlxqWIGV//ERMnUKag= Received: by 10.227.59.210 with SMTP id m18mr1578218wbh.112.1302844095840; Thu, 14 Apr 2011 22:08:15 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id w12sm1375625wby.58.2011.04.14.22.08.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 22:08:14 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: configure wlan0 route metric Date: Fri, 15 Apr 2011 06:08:31 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r8; KDE/4.4.5; x86_64; ; ) References: <20110415020657.GA9142@gaurahari> In-Reply-To: <20110415020657.GA9142@gaurahari> 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="nextPart1724559.RKdUUPTh8l"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201104150608.42184.michaelkintzios@gmail.com> X-Archives-Salt: X-Archives-Hash: 96d711ef17ab6d9f4b097bf1418b3b20 --nextPart1724559.RKdUUPTh8l Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Friday 15 April 2011 03:06:57 Indi wrote: > 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 wrote: > > > > deadeyes gmail.com> writes: > > > >=20 > > > > code that can be added in /etc/conf.d/net: > > > > postup() { > > > > local metric=3D0 > > > >=20 > > > > case "${IFACE}" in > > > > eth0) metric=3D0 ;; > > > > eth1) metric=3D1 ;; > > > > esac > > > > ifmetric "${IFACE}" "${metric}" > > > >=20 > > > > return 0 > > > > } > > > >=20 > > > > 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. >=20 > Oh, I got that backwards, sorry -- wireless is eth1. Different drivers name the wireless interface using different names (eth1,= =20 wlan0, ath0, etc.) =2D-=20 Regards, Mick --nextPart1724559.RKdUUPTh8l Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk2n0toACgkQVTDTR3kpaLb+CgCfVQHPacY5gKxagxKE4DwlMtTp QzEAmwUAr9XdtcOrmjElD/AzwMaWb5wQ =H8LI -----END PGP SIGNATURE----- --nextPart1724559.RKdUUPTh8l--