From e31a5b5ad1ae955e1ae5138fba881fad82d7dc09 Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 16 Apr 1997 05:48:27 +0000 Subject: [PATCH] Don't source /etc/rc.securelevel if it doesn't exist and be more verbose when upping the securelevel. --- etc/rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index b1cd8d52696..805a81463fb 100644 --- a/etc/rc +++ b/etc/rc @@ -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 -- 2.20.1