Gentoo Archives: gentoo-user

From: Indi <thebeelzebubtrigger@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: configure wlan0 route metric
Date: Thu, 14 Apr 2011 22:27:11
Message-Id: 20110414222519.GA9593@gaurahari
1 On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote:
2 > On 14 April 2011 09:13, deadeyes <gvm999@×××××.com> wrote:
3 > > deadeyes <gvm999 <at> gmail.com> writes:
4 > >
5 > > code that can be added in /etc/conf.d/net:
6 > > postup() {
7 > >   local metric=0
8 > >
9 > >   case "${IFACE}" in
10 > >      eth0) metric=0 ;;
11 > >      eth1) metric=1 ;;
12 > >   esac
13 > >   ifmetric "${IFACE}" "${metric}"
14 > >
15 > >   return 0
16 > > }
17 > >
18 > > Seems like this works for me as well! :)
19 >
20 > It does? I assume that eth1 above is wlan0 in your case.
21 >
22
23 On my thinkpad the wireless is eth0, wired is eth1.
24 Not sure why, but I've had a few machines that work that way.
25
26 --
27 /\ /\
28 <\ />
29 ^ caveat utilitor
30 'v-v'