f4b38c360e
/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
19 lines
291 B
Bash
Executable File
19 lines
291 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: sysctl_lastload
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: jail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="sysctl_lastload"
|
|
desc="Last chance to set sysctl variables that failed the first time."
|
|
start_cmd="/etc/rc.d/sysctl lastload"
|
|
stop_cmd=":"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|