1 |
On Friday 15 April 2011 03:06:57 Indi wrote: |
2 |
> On Fri, Apr 15, 2011 at 12:30:02AM +0200, Indi wrote: |
3 |
> > On Thu, Apr 14, 2011 at 12:00:02PM +0200, Mick wrote: |
4 |
> > > On 14 April 2011 09:13, deadeyes <gvm999@×××××.com> wrote: |
5 |
> > > > deadeyes <gvm999 <at> gmail.com> writes: |
6 |
> > > > |
7 |
> > > > code that can be added in /etc/conf.d/net: |
8 |
> > > > postup() { |
9 |
> > > > local metric=0 |
10 |
> > > > |
11 |
> > > > case "${IFACE}" in |
12 |
> > > > eth0) metric=0 ;; |
13 |
> > > > eth1) metric=1 ;; |
14 |
> > > > esac |
15 |
> > > > ifmetric "${IFACE}" "${metric}" |
16 |
> > > > |
17 |
> > > > return 0 |
18 |
> > > > } |
19 |
> > > > |
20 |
> > > > Seems like this works for me as well! :) |
21 |
> > > |
22 |
> > > It does? I assume that eth1 above is wlan0 in your case. |
23 |
> > |
24 |
> > On my thinkpad the wireless is eth0, wired is eth1. |
25 |
> |
26 |
> Oh, I got that backwards, sorry -- wireless is eth1. |
27 |
|
28 |
Different drivers name the wireless interface using different names (eth1, |
29 |
wlan0, ath0, etc.) |
30 |
|
31 |
-- |
32 |
Regards, |
33 |
Mick |