HomeFreeBSD

/etc/rc.subr: add support for kld sysctl variables

Description

/etc/rc.subr: add support for kld sysctl variables

For kernel modules loaded by scripts in /etc/rc.d and
/usr/local/etc/rc.d, if there is a file in /etc/sysctl.conf.d named <kld
name>.conf, then this will be loaded using the sysctl(8) utility. For
instance, sysctl variable changes for the pf kernel module would be
placed in the file /etc/sysctl.conf.d/pf.conf.

PR: 272129
Reviewed by: imp freebsd_igalic.co
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D40886

Details

Provenance
dfrAuthored on Jun 21 2023, 12:26 PM
Reviewer
imp
Differential Revision
D40886: /etc/rc.d/kld: add support for modifying sysctl variables
Parents
rGf53b28c6dffe: Fix i386 MINIMAL build
Branches
Unknown
Tags
Unknown