summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorAlex Feldman <alex@cvs.openbsd.org>1999-04-21 20:18:03 +0000
committerAlex Feldman <alex@cvs.openbsd.org>1999-04-21 20:18:03 +0000
commit97953b321f99e119a463cc4193cae327b154ba3c (patch)
tree551a5afbf1857da6ff0ad6a68d101adb6f518e43 /etc/rc
parent6a2a3c144c9bf819703b032d436220baed7bf4a9 (diff)
Save a copy of the boot messages in /var/run/dmesg.boot.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index f64a59386a2..35ef6454283 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.95 1998/12/28 06:58:30 deraadt Exp $
+# $OpenBSD: rc,v 1.96 1999/04/21 20:18:02 alex Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -89,6 +89,9 @@ rm -f /var/spool/lock/LCK.*
rm -f /var/spool/uucp/STST/*
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
+# save a copy of the boot messages
+dmesg >/var/run/dmesg.boot
+
echo 'starting system logger'
rm -f /dev/log
if [ "X${named_flags}" != X"NO" -a "X${named_chroot}" != "X" ]; then