Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
way to make net.ra0 not start if net.eth0 is detected?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tonglebeak
Guru
Guru


Joined: 23 Mar 2006
Posts: 362

PostPosted: Mon Jul 24, 2006 2:15 am    Post subject: way to make net.ra0 not start if net.eth0 is detected? Reply with quote

I have a tower that I bring into work sometimes. At home I use a wireless connection (net.ra0) and at work I use an ethernet connection (net.eth0).

Whenever is there a way to make it so net.ra0 does NOT startup when net.eth0 is detected? Obviously when net.ra0 tries to start it takes forever trying to find a wireless network that isn't there. Removing net.ra0 with rc-update del net.ra0 does not help.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Mon Jul 24, 2006 5:51 am    Post subject: Reply with quote

Hello,

Maybe ifplugd could do something for you, but I didn't investigate that much...
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Mon Jul 24, 2006 6:39 am    Post subject: Reply with quote

Wating for you to have a complete clean solution, you can at least make the "forever" a bit quicker by modifying the dhcp timeout in /etc/conf.d/net (originally at 60 seconds)

Code:

# For passing custom options to dhcpcd use something like the following.  This
# example reduces the timeout for retrieving an address from 60 seconds (the
# default) to 10 seconds.
#dhcpcd_eth0="-t 10"
#dhcpcd_ra0="-t 10"

_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jul 24, 2006 10:24 am    Post subject: Re: way to make net.ra0 not start if net.eth0 is detected? Reply with quote

Tonglebeak wrote:
I have a tower that I bring into work sometimes. At home I use a wireless connection (net.ra0) and at work I use an ethernet connection (net.eth0).

Whenever is there a way to make it so net.ra0 does NOT startup when net.eth0 is detected? Obviously when net.ra0 tries to start it takes forever trying to find a wireless network that isn't there. Removing net.ra0 with rc-update del net.ra0 does not help.


Use netplugd to manage the wired connection.

As ra0 does not support wpa_supplicant, you have to use iwconfig. But it's not all bad as if you setup so that it scans instead of forces an ESSID then it's quite fast - <2 seconds on my laptop.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum