View previous topic :: View next topic |
Author |
Message |
Leander89 n00b
Joined: 13 Jul 2008 Posts: 58
|
Posted: Thu Aug 28, 2008 9:36 pm Post subject: Starting net.eth0 & net.ath0 at boot with rc-update |
|
|
Hello everyone,
I am running Gentoo on a notebook and it comes with a wireless internet card and a normal internet card.
I don't want the wireless interface to be started at startup. I want to fire it up at commando.
Now the documentation gives these clues on how to start the network devices at boot:
Quote: | Connect using the Gentoo networking init script
Create a link that corresponds to your network interface/device in /etc/init.d/ and then start it:
Code:
cd /etc/init.d
ln -s net.lo net.DEVICE
/etc/init.d/net.DEVICE start
To start the Gentoo networking init script at boot: rc-update add net.<device> default. |
Now my problem, I didn't do the last line for both network devices and they still come up at boot!
How can I control which network device to start up at boot? It seems like rc-update add net.<device> default , isn't necessary at all.
net.lo is in my default runlevel, I can see that when I enter: rc-update show, I'm clueless about what the file does. I do know
both files (net.eth0 and net.ath0 ) are in the init.d dir and are linked to net.lo.
Both devices work fine by the way, but I don't want to start 2 network devices at boot standard.
Thanks,
Leander |
|
Back to top |
|
|
Falador n00b
Joined: 18 Jan 2004 Posts: 60
|
Posted: Thu Aug 28, 2008 9:47 pm Post subject: |
|
|
in /etc/conf.d/rc find the following line,
Code: | RC_PLUG_SERVICES="" |
and change it to,
Code: | RC_PLUG_SERVICES="!net.ath0" |
Hope that helps, works with any service. |
|
Back to top |
|
|
Leander89 n00b
Joined: 13 Jul 2008 Posts: 58
|
Posted: Thu Aug 28, 2008 10:03 pm Post subject: |
|
|
Thanks for the reply, I'll try that in a sec. , but still what's the "rc-update add net.<device> default" command good for if it's already started?
It seems like it is being started default, but I don't understand why or what it makes it to. |
|
Back to top |
|
|
Leander89 n00b
Joined: 13 Jul 2008 Posts: 58
|
Posted: Thu Aug 28, 2008 11:17 pm Post subject: |
|
|
I found this it in the documentation, now I made it work like I wanted. Problem solved.
Quote: | Even though net.eth0 has been removed from the offline runlevel, udev will still attempt to start any devices it detects and launch the appropriate services. Therefore, you will need to add each network service you do not want started (as well as services for any other devices that may be started by udev) to /etc/conf.d/rc as shown.
Code Listing 5.3: Disabling device initiated services in /etc/conf.d/rc
RC_COLDPLUG="yes"
(Next, specify the services you do not want automatically started)
RC_PLUG_SERVICES="!net.eth0"
Note: For more information on device initiated services, please see the comments inside /etc/conf.d/rc. |
|
|
Back to top |
|
|
|