o Add support for running /etc/rc.early
o Re-run through /etc/sysctl.conf a second time just before we set the securelevel. Approved by: markm (mentor) (implicit) Reviewed by: dougb
This commit is contained in:
parent
8cf06adbcb
commit
f6b6e5ea40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113960
16
etc/rc.d/early.sh
Normal file
16
etc/rc.d/early.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: early
|
||||
# REQUIRE: disks localswap
|
||||
# BEFORE: fsck
|
||||
# KEYWORD: FreeBSD
|
||||
|
||||
#
|
||||
# Support for legacy /etc/rc.early script
|
||||
#
|
||||
if [ -r /etc/rc.early ]; then
|
||||
. /etc/rc.early
|
||||
fi
|
@ -17,6 +17,10 @@ stop_cmd=":"
|
||||
|
||||
securelevel_start()
|
||||
{
|
||||
# Last chance to set sysctl variables that failed the first time.
|
||||
#
|
||||
/etc/rc.d/sysctl lastload
|
||||
|
||||
case ${OSTYPE} in
|
||||
FreeBSD)
|
||||
case ${kern_securelevel_enable} in
|
||||
|
Loading…
Reference in New Issue
Block a user