Gentoo Archives: gentoo-user

From: Indi <thebeelzebubtrigger@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: configure wlan0 route metric
Date: Wed, 13 Apr 2011 15:37:13
Message-Id: 20110413153534.GA13724@gaurahari
1 On Wed, Apr 13, 2011 at 01:50:02PM +0200, deadeyes wrote:
2 >
3 > I was searching around the gentoo forums for ifmetric and found this piece of
4 > code that can be added in /etc/conf.d/net:
5 > postup() {
6 > local metric=0
7 >
8 > case "${IFACE}" in
9 > eth0) metric=0 ;;
10 > eth1) metric=1 ;;
11 > esac
12 > ifmetric "${IFACE}" "${metric}"
13 >
14 > return 0
15 > }
16 >
17
18 Hey, that works very well here -- thanks!
19 Been wanting that solution for some time now.
20 :)
21 --
22 /\ /\
23 <\ />
24 ^ caveat utilitor
25 'v-v'

Replies

Subject Author
Re: [gentoo-user] Re: configure wlan0 route metric Mick <michaelkintzios@×××××.com>