From 1bfe14b806b5fe133b27d42ac8e4f97dae695b08 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 1 Feb 2008 21:04:17 +0000 Subject: keep one old copy of dmesg around (#426538) --- rc.d/rc.sysinit | 1 + 1 file changed, 1 insertion(+) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ca49ec97..28972ce5 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -904,6 +904,7 @@ fi # Now that we have all of our basic modules loaded and the kernel going, # let's dump the syslog ring somewhere so we can find it later +[ -f /var/log/dmesg ] && mv -f /var/log/dmesg /var/log/dmesg.old dmesg -s 131072 > /var/log/dmesg # create the crash indicator flag to warn on crashes, offer fsck with timeout -- cgit v1.2.1