Page MenuHomeFreeBSD

D56898.id177491.diff
No OneTemporary

D56898.id177491.diff

diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist
--- a/etc/mtree/BSD.root.dist
+++ b/etc/mtree/BSD.root.dist
@@ -105,6 +105,8 @@
untrusted tags=package=caroot
..
..
+ sysctl.conf.d tags=package=rc
+ ..
sysctl.kld.d tags=package=rc
..
syslog.d tags=package=syslogd
diff --git a/libexec/rc/rc.d/sysctl b/libexec/rc/rc.d/sysctl
--- a/libexec/rc/rc.d/sysctl
+++ b/libexec/rc/rc.d/sysctl
@@ -26,7 +26,7 @@
;;
esac
- for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do
+ for _f in /etc/sysctl.conf /etc/sysctl.conf.local /etc/sysctl.conf.d/*.conf; do
if [ -r ${_f} ]; then
${command} ${command_args} ${_f} > /dev/null
fi
diff --git a/share/man/man5/sysctl.conf.5 b/share/man/man5/sysctl.conf.5
--- a/share/man/man5/sysctl.conf.5
+++ b/share/man/man5/sysctl.conf.5
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 30, 2022
+.Dd May 9, 2026
.Dt SYSCTL.CONF 5
.Os
.Sh NAME
@@ -74,6 +74,10 @@
.It Pa /etc/sysctl.conf.local
Machine-specific settings for sites with a common
.Pa /etc/sysctl.conf .
+.It Pa /etc/sysctl.conf.d
+Directory for modularized
+.Xr sysctl 8
+files.
.It Pa /etc/sysctl.kld.d
Module specific settings for kernel modules loaded via
.Xr rc.subr 8 .

File Metadata

Mime Type
text/plain
Expires
Wed, May 27, 7:33 PM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33563604
Default Alt Text
D56898.id177491.diff (1 KB)

Event Timeline