Subject: Re: Neat feature.
To: Robert Elz <kre@munnari.OZ.AU>
From: None <erh@nimenees.com>
List: current-users
Date: 06/15/2000 11:42:15
On Fri, Jun 16, 2000 at 12:34:48AM +1000, Robert Elz wrote:
> do_dmesg()
> {
> mv /var/log/dmesg.boot /var/log/dmesg.boot-
> dmesg $dmesg_flags > /var/log/dmesg.boot
> (echo -n "Booted at: "; date) >> /var/log/dmesg.history
> cat /var/log/dmesg.boot >> /var/log/dmesg.history
> }
or with the compare-it-first idea:
if ! cmp -s /var/log/dmesg.boot /var/log/dmesg.boot- ; then
mv ...
dmesg ... > ...
fi
so you actually keep the last different dmesg output.
eric