Add support for /etc/rc.conf.d/<service> subdirectories. This is
particularly useful for services such as "network" (netif) where each interface can now have its own separate configuration file. Add /etc/rc.conf.d to the mtree file so it is always present. MFC after: 3 days
This commit is contained in:
parent
fe248ffb7f
commit
5407523fe5
@ -62,6 +62,8 @@
|
||||
..
|
||||
ppp
|
||||
..
|
||||
rc.conf.d
|
||||
..
|
||||
rc.d
|
||||
..
|
||||
security
|
||||
|
10
etc/rc.subr
10
etc/rc.subr
@ -1290,8 +1290,16 @@ load_rc_config()
|
||||
_rc_conf_loaded=true
|
||||
fi
|
||||
if [ -f /etc/rc.conf.d/"$_name" ]; then
|
||||
debug "Sourcing /etc/rc.conf.d/${_name}"
|
||||
debug "Sourcing /etc/rc.conf.d/$_name"
|
||||
. /etc/rc.conf.d/"$_name"
|
||||
elif [ -d /etc/rc.conf.d/"$_name" ] ; then
|
||||
local _rc
|
||||
for _rc in /etc/rc.conf.d/"$_name"/* ; do
|
||||
if [ -f "$_rc" ] ; then
|
||||
debug "Sourcing $_rc"
|
||||
. "$_rc"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Set defaults if defined.
|
||||
|
Loading…
x
Reference in New Issue
Block a user