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 1QAHih-0004xV-PZ for garchives@archives.gentoo.org; Thu, 14 Apr 2011 08:16:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 623001C03B; Thu, 14 Apr 2011 08:14:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2D3C81C03B for ; Thu, 14 Apr 2011 08:14:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B5E462AC013 for ; Thu, 14 Apr 2011 08:14:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 required=5.5 tests=[BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w+iuQyf8H3+P for ; Thu, 14 Apr 2011 08:14:06 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 8D9B11BC0D8 for ; Thu, 14 Apr 2011 08:14:05 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAHge-0002G4-Fe for gentoo-user@gentoo.org; Thu, 14 Apr 2011 10:14:00 +0200 Received: from d5152C92C.static.telenet.be ([81.82.201.44]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 10:14:00 +0200 Received: from gvm999 by d5152C92C.static.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2011 10:14:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: deadeyes Subject: [gentoo-user] Re: configure wlan0 route metric Date: Thu, 14 Apr 2011 08:13:47 +0000 (UTC) Message-ID: 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-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 81.82.201.44 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.16) Gecko/20110330 Gentoo Firefox/3.6.16) X-Archives-Salt: X-Archives-Hash: 725a892d595a21da56b9a81467d00ed5 deadeyes gmail.com> writes: 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 } Seems like this works for me as well! :) Thanks for your responses guys