Browse Source

Don't source /etc/rc.securelevel if it doesn't exist and be

more verbose when upping the securelevel.
OPENBSD_2_1
millert 28 years ago
parent
commit
9310394a71
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/etc/rc

+ 3
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.32 1997/04/15 09:26:47 deraadt Exp $
# $OpenBSD: rc,v 1.33 1997/04/16 05:48:27 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -202,8 +202,9 @@ if [ -f /etc/ptmp ]; then
'password file may be incorrect -- /etc/ptmp exists'
fi
. /etc/rc.securelevel
test -f /etc/rc.securelevel && . /etc/rc.securelevel
if [ X${securelevel} != X"" ]; then
echo -n 'setting kernel security level: '
sysctl -w kern.securelevel=${securelevel}
fi


Loading…
Cancel
Save