Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is conf.d/net used by netifrc? /etc/conf.d/network exists
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
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 656

PostPosted: Wed Sep 14, 2016 11:35 pm    Post subject: Is conf.d/net used by netifrc? /etc/conf.d/network exists Reply with quote

I have a legacy /etc/conf.d/net with one newly added setting for lxcbr0 (for LXD).

Should I be using /etc/conf.d/net or /etc/conf.d/network (all lines are commented) for interface settings?

Are /etc/conf.d/net and /etc/conf.d/network using the same configuration syntax?

Neither appears to be owned by any package as reported by equery belongs, but do I see that baselayout-2.3 created /etc/conf.d/network.

Settings in /etc/conf.d/net do seem to take effect when starting /etc/init.d/net.lxcbr0.
Code:
% ls /etc/conf.d/net*
/etc/conf.d/net  /etc/conf.d/netmount  /etc/conf.d/net-online  /etc/conf.d/network

Code:
% cat /etc/conf.d/net                                                                                                                                 
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /usr/share/doc/openrc*/net.example* and save your configuration
# in /etc/conf.d/net (this file :]!).

# The network scripts are now part of net-misc/netifrc
# In order to avoid sys-apps/openrc-0.12 from removing this file, this comment was
# added; you can safely remove this comment.  Please see
# /usr/share/doc/netifrc*/README* for more information.

bridge_lxcbr0="eth0"
config_lxcbr0="dhcp"

Code:
grep -v -e '^#' /etc/conf.d/network |grep -v -e '^$'
(no output)

Code:
[ebuild   R    ] net-misc/netifrc-0.4.0::gentoo  0 KiB
[ebuild   R    ] sys-apps/openrc-0.21.7::gentoo  USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs -tools" 0 KiB

IIUC netifrc is the current new interface framework, and 'newnet' is something experimental that will be an alternative to/supersede netifrc?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Thu Sep 15, 2016 3:28 pm    Post subject: Reply with quote

Iff you don't run any /etc/init.d/net.* services, that file isn't used.
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