Subject: Re: save old dmesg outputs
To: Daniel Carosone <dan@geek.com.au>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 07/30/2006 02:58:05
On Sun, 30 Jul 2006, Daniel Carosone wrote:
> I've thought about something similar a few times, when trying to
> figure out what might have changed between kernels - usually some time
> after the fact. How about keeping the contents of /var/run/dmesg.boot
> under /var/backup like all the other files we keep history of?
>
> It wouldn't catch multiple boots in the same day, but maybe that's
> less relevant for historical reference, or maybe a combination of the
> two methods is best.

I think /etc/security's backup_and_diff() invoked on every time 
/etc/rc.d/dmesg gets ran (with secibd arument set to "no" to not print the 
diff) sounds pretty easy. The function needs to get migrated to rc.subr, 
though.


  - Hubert