View previous topic :: View next topic |
Author |
Message |
Tonglebeak Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 23 Mar 2006 Posts: 362
|
Posted: Mon Jul 24, 2006 2:15 am Post subject: way to make net.ra0 not start if net.eth0 is detected? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mamac l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/79832502046fa149601d7a.jpg)
Joined: 29 Feb 2004 Posts: 890
|
Posted: Mon Jul 24, 2006 5:51 am Post subject: |
|
|
Hello,
Maybe ifplugd could do something for you, but I didn't investigate that much... _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Dec 2005 Posts: 305 Location: Namur, Belgium
|
Posted: Mon Jul 24, 2006 6:39 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Jul 24, 2006 10:24 am Post subject: Re: way to make net.ra0 not start if net.eth0 is detected? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|