1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00

Make rc record boottime dmesg to /var/log/dmesg.boot, so the data

is preserved after it scrolls out of the dmesg buffer.
This commit is contained in:
Daniel O'Callaghan 1997-12-09 07:22:04 +00:00
parent 7486d3658f
commit 222d148ced
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31641

6
etc/rc
View File

@ -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