On Thu, Apr 19, 2012 at 12:22:11AM -0400, Hugo Villeneuve wrote:
> On Tue, Apr 17, 2012 at 10:34:22AM +0200, Otto Moerbeek wrote:
> > 
> > 
> > Some machines keep previous dmessages in mem. Scroll down to see the
> > most recent dmesg, or check /var/run/dmesg.boot
> > 
> > A cold boot wipes the dmesg buffer.
> > 
> >     -Otto
> 
> Did something change in -current?
> 
> /etc/rc just does "dmesg >/var/run/dmesg.boot". It will also have
> the previous boot data on computer that don't reset memory.
> 
> It annoyed me enough that I added this to rc.local on those computer:

I like having those old messages available. On junk that doesn't have
serial ports it's the simplest way of getting to for example
ddb output after a reboot.

> ed -s /var/run/dmesg.boot <<EOF >/dev/null 2>&1
> ?^OpenBSD [0-9]?
> 1,-d
> wq
> EOF

-- 
Eivind

Reply via email to