]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.d: unbreak sysctl lastload
authorEugene Grosbein <eugen@FreeBSD.org>
Wed, 19 May 2021 13:02:31 +0000 (20:02 +0700)
committerEugene Grosbein <eugen@FreeBSD.org>
Fri, 16 Jul 2021 06:37:04 +0000 (13:37 +0700)
commit6ec2f0d74b22f857530b87ce8db153831fff1cca
treea1224d36d7966966d347e3339c95725dfb264db6
parent8b9b3d90de5dbeba0f8d68a154c657c0c139e5a9
rc.d: unbreak sysctl lastload

/etc/rc.d/securelevel is supposed to run /etc/rc.d/sysctl lastload
late at boot time to apply /etc/sysctl.conf settings that fail
to apply early. However, this does not work in default configuration
because of kern_securelevel_enable="NO" by default.

Add new script /etc/rc.d/sysctl_lastload that starts unconditionally.

Reported by: Marek Zarychta
MFC after: 1 month

(cherry picked from commit f4b38c360e63a6e66245efedbd6c070f9c0aee55)
libexec/rc/rc.d/securelevel
libexec/rc/rc.d/sysctl_lastload [new file with mode: 0755]