diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-16 05:48:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-16 05:48:28 +0000 |
commit | 3e515385b479f8b1e215b1d973f0c45d991f2c9d (patch) | |
tree | ce7a281320fed249a219e2e8f259212c827370dd /etc | |
parent | 2d8b899ec4b71c63bd9445ebc856a95b360a5093 (diff) |
Don't source /etc/rc.securelevel if it doesn't exist and be
more verbose when upping the securelevel.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |