summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-15 09:26:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-15 09:26:49 +0000
commit0d12a268d8995320b6654c75d15dfc2640db9b3d (patch)
treef5910699b937f53240c276d90122170bdaa1a5c2 /etc/rc
parent60c399e7a1e5ba354457a6d8b2a0e5a0bed9fe8f (diff)
split rc.local, creating rc.securelevel. Read the comments. If you believe
in securelevels, follow them religiously. Problem found by millert...
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index f3906a077ec..b1cd8d52696 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.31 1997/02/28 07:53:33 millert Exp $
+# $OpenBSD: rc,v 1.32 1997/04/15 09:26:47 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -202,6 +202,11 @@ if [ -f /etc/ptmp ]; then
'password file may be incorrect -- /etc/ptmp exists'
fi
+. /etc/rc.securelevel
+if [ X${securelevel} != X"" ]; then
+ sysctl -w kern.securelevel=${securelevel}
+fi
+
virecovery=/var/tmp/vi.recover/recover.*
if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then
echo preserving editor files