On Friday 15 April 2011 03:06:57 Indi wrote:
> 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 <gvm...@gmail.com> 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.

Different drivers name the wireless interface using different names (eth1, 
wlan0, ath0, etc.)

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to