Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.* scripts and 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
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Tue May 17, 2011 1:00 pm    Post subject: net.* scripts and rc-update Reply with quote

/etc/conf.d/net wrote:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,..

Doesn't this render run levels useless? I have eth1 and wlan0 devices with appropriate symlinks to /etc/init.d/net.lo but don't want to run dhcp for eth1 at startup. The normal way would be to remove /etc/init.d/net.eth1 from the default run level but the symlink to /etc/init.d/net.lo will still remain and thus net.eth1 will be run and dhcp used.

Is this really the desired behaviour? How does it make sense?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4877
Location: Dallas area

PostPosted: Tue May 17, 2011 1:04 pm    Post subject: Reply with quote

Different devices are what /etc/conf.d/net is for.
_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Tue May 17, 2011 1:10 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Different devices are what /etc/conf.d/net is for.

?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4877
Location: Dallas area

PostPosted: Tue May 17, 2011 1:19 pm    Post subject: Reply with quote

Definitions for dchp/no-dhcp and other things are in /etc/conf.d/net they are tagged by interface wlan0, eth0, etc.

If you look at /etc/init.d/net.lo you will see that it does things "per interface" which ties back to the conf.d file.
It also checks to see if that interface is in the default runlevel and if it's not there it shouldn't run it.

Edit to add: udev also has something to do with it, but I don't think it's pertinent.
_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
ddriver
n00b
n00b


Joined: 24 Feb 2005
Posts: 67

PostPosted: Mon May 23, 2011 1:00 am    Post subject: Reply with quote

Will this help in /etc/conf.d/net?

Code:


config_eth1="null"

[/quote]
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