diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-15 09:26:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-15 09:26:49 +0000 |
commit | 0d12a268d8995320b6654c75d15dfc2640db9b3d (patch) | |
tree | f5910699b937f53240c276d90122170bdaa1a5c2 /etc/rc | |
parent | 60c399e7a1e5ba354457a6d8b2a0e5a0bed9fe8f (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/rc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |