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:
Mike Makonnen 2003-04-24 08:27:29 +00:00
parent 8cf06adbcb
commit f6b6e5ea40
2 changed files with 20 additions and 0 deletions

16
etc/rc.d/early.sh Normal file
View 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

View File

@ -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