diff options
author | danny <danny@FreeBSD.org> | 1997-12-09 07:22:04 +0000 |
---|---|---|
committer | danny <danny@FreeBSD.org> | 1997-12-09 07:22:04 +0000 |
commit | ee28c6d7573801105438974d8873affbb2a488fb (patch) | |
tree | 333af290c9707c3847c763ef891e80c9c24b0764 /etc/rc | |
parent | f33f94c5aed09626c563e79cedcad69707872c24 (diff) | |
download | FreeBSD-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/rc')
-rw-r--r-- | etc/rc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |