Add a late rc.sysctl pass to catch sysctl's for things that were
not loaded yet on the first pass. PR: conf/19629 Submitted by: Stephen J. Roznowski <sjr@home.com>
This commit is contained in:
parent
8486ee4c42
commit
d0e0826a8c
9
etc/rc
9
etc/rc
@ -401,9 +401,10 @@ case ${swapfile} in
|
||||
;;
|
||||
esac
|
||||
|
||||
# Set sysctl variables as early as we can
|
||||
# Early pass to set the variables we can
|
||||
#
|
||||
if [ -r /etc/rc.sysctl ]; then
|
||||
echo 'Warnings here may be due to modules that have not been loaded yet'
|
||||
. /etc/rc.sysctl
|
||||
fi
|
||||
|
||||
@ -914,6 +915,12 @@ if [ -n "${network_pass3_done}" ]; then
|
||||
network_pass4
|
||||
fi
|
||||
|
||||
# Late pass to set variables we missed the first time
|
||||
#
|
||||
if [ -r /etc/rc.sysctl ]; then
|
||||
. /etc/rc.sysctl
|
||||
fi
|
||||
|
||||
# Raise kernel security level. This should be done only after `fsck' has
|
||||
# repaired local file systems if you want the securelevel to be greater than 1.
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user