Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting net.eth0 & net.ath0 at boot with rc-update
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
Leander89
n00b
n00b


Joined: 13 Jul 2008
Posts: 58

PostPosted: Thu Aug 28, 2008 9:36 pm    Post subject: Starting net.eth0 & net.ath0 at boot with rc-update Reply with quote

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
View user's profile Send private message
Falador
n00b
n00b


Joined: 18 Jan 2004
Posts: 60

PostPosted: Thu Aug 28, 2008 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Leander89
n00b
n00b


Joined: 13 Jul 2008
Posts: 58

PostPosted: Thu Aug 28, 2008 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Leander89
n00b
n00b


Joined: 13 Jul 2008
Posts: 58

PostPosted: Thu Aug 28, 2008 11:17 pm    Post subject: Reply with quote

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
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