View previous topic :: View next topic |
Author |
Message |
HyperQuantum Tux's lil' helper
Joined: 27 Sep 2005 Posts: 88
|
Posted: Wed Feb 13, 2008 1:18 pm Post subject: using ath0 instead of eth0 [solved] |
|
|
I finally got the wireless card of my laptop working, so I want to use my wireless connection used by default at bootup. So I removed net.eth0 from the default runlevel and added net.ath0 to replace it. But eth0 is somehow still started at bootup, and have to run "/etc/init.d/net.eth0 stop" in order to have the traffic routed over ath0 instead of eth0. It's possible that some other service lists eth0 as a dependency. How can I avoid eth0 being started?
Last edited by HyperQuantum on Wed Feb 13, 2008 2:45 pm; edited 1 time in total |
|
Back to top |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Wed Feb 13, 2008 1:21 pm Post subject: |
|
|
I believe you can edit /etc/conf.d/rc and change the line to
look like so:
Code: |
RC_NET_STRICT_CHECKING="lo"
|
That's how I've been doing it and it seems to work alright, although if there is
a better / proper way to do it, I'd like to know.
HTH
-M |
|
Back to top |
|
|
HyperQuantum Tux's lil' helper
Joined: 27 Sep 2005 Posts: 88
|
Posted: Wed Feb 13, 2008 2:45 pm Post subject: |
|
|
I searched google for "gentoo init scripts" and found this:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
(look to the bottom of the page)
Apparently udev starts net.eth0 automatically simply because it discovers the device.
I changed RC_PLUG_SERVICES in /etc/conf.d/rc:
RC_PLUG_SERVICES="!net.eth0"
And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking. |
|
Back to top |
|
|
lanoira n00b
Joined: 11 Feb 2007 Posts: 10
|
Posted: Sun Feb 24, 2008 8:56 pm Post subject: |
|
|
HyperQuantum wrote: | RC_PLUG_SERVICES="!net.eth0"
And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking. |
I need the eth0 interface to be started after the wireless device (ath0 in my case). Would that be possible? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23066
|
Posted: Sun Feb 24, 2008 11:04 pm Post subject: |
|
|
lanoira wrote: | HyperQuantum wrote: | RC_PLUG_SERVICES="!net.eth0"
And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking. |
I need the eth0 interface to be started after the wireless device (ath0 in my case). Would that be possible? |
Try echo 'RC_AFTER_eth0="ath0"' >> /etc/conf.d/net (untested). |
|
Back to top |
|
|
HyperQuantum Tux's lil' helper
Joined: 27 Sep 2005 Posts: 88
|
Posted: Thu Feb 28, 2008 12:54 pm Post subject: |
|
|
HyperQuantum wrote: | Apparently udev starts net.eth0 automatically simply because it discovers the device.
I changed RC_PLUG_SERVICES in /etc/conf.d/rc:
RC_PLUG_SERVICES="!net.eth0"
And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking. |
I installed ifplugd and had to remove the line again to get things working as expected. So all you need is ifplugd |
|
Back to top |
|
|
|