]> 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>
Wed, 19 May 2021 13:02:31 +0000 (20:02 +0700)
commitf4b38c360e63a6e66245efedbd6c070f9c0aee55
treece0f6e053c31f55d91627d4b1934baa8610b444f
parentf0a5e81af4361abfc09ccaefbc375ece35ff79cc
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
libexec/rc/rc.d/securelevel
libexec/rc/rc.d/sysctl_lastload [new file with mode: 0755]