summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1997-12-09 07:22:04 +0000
committerdanny <danny@FreeBSD.org>1997-12-09 07:22:04 +0000
commitee28c6d7573801105438974d8873affbb2a488fb (patch)
tree333af290c9707c3847c763ef891e80c9c24b0764 /etc
parentf33f94c5aed09626c563e79cedcad69707872c24 (diff)
downloadFreeBSD-src-ee28c6d7573801105438974d8873affbb2a488fb.zip
FreeBSD-src-ee28c6d7573801105438974d8873affbb2a488fb.tar.gz
Make rc record boottime dmesg to /var/log/dmesg.boot, so the data
is preserved after it scrolls out of the dmesg buffer.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index de3c127..5928e10 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.138 1997/09/21 16:09:47 joerg Exp $
+# $Id: rc,v 1.139 1997/11/16 12:52:16 steve Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -314,5 +314,9 @@ fi
# Do traditional (but rather obsolete) rc.local file if it exists.
[ -f /etc/rc.local ] && sh /etc/rc.local
+# Record dmesg buffer at boot
+dmesg > /var/log/dmesg.boot
+chmod 400 /var/log/dmesg.boot
+
date
exit 0
OpenPOWER on IntegriCloud