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.
Not sure why, but I've had a few machines that work that way.
--
/\ /\
<\ />
^ caveat utilitor
'v-v'