Browse Source

process sysctl.conf way earlier

OPENBSD_2_7
deraadt 25 years ago
parent
commit
61789cc798
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      src/etc/rc

+ 12
- 12
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.125 1999/11/23 02:20:14 deraadt Exp $
# $OpenBSD: rc,v 1.126 2000/01/01 22:45:35 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -105,6 +105,17 @@ else
> /dev/null 2>&1
fi
if [ -f /etc/sysctl.conf ]; then
(
# delete comments and blank lines
set -- `sed -e 's/#.*$//' /etc/sysctl.conf | grep -v '^$'`
while [ $# -ge 1 ] ; do
sysctl -w $1
shift 1
done
)
fi
# set hostname, turn on network
echo 'starting network'
. /etc/netstart
@ -298,17 +309,6 @@ echo clearing /tmp
find . ! -name . ! -name lost+found ! -name quota.user \
! -name quota.group -execdir rm -rf -- {} \; -type d -prune)
if [ -f /etc/sysctl.conf ]; then
(
# delete comments and blank lines
set -- `sed -e 's/#.*$//' /etc/sysctl.conf | grep -v '^$'`
while [ $# -ge 1 ] ; do
sysctl -w $1
shift 1
done
)
fi
[ -f /etc/rc.securelevel ] && . /etc/rc.securelevel
if [ X${securelevel} != X"" ]; then
echo -n 'setting kernel security level: '


Loading…
Cancel
Save