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 <[email protected]> wrote:
> > > deadeyes <gvm999 <at> 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! :)
> >
> > It does? I assume that eth1 above is wlan0 in your case.
> >
>
> On my thinkpad the wireless is eth0, wired is eth1.
Oh, I got that backwards, sorry -- wireless is eth1.
:)
--
/\ /\
<\ />
^ caveat utilitor
'v-v'