aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-02-01 21:04:17 +0000
committerBill Nottingham <notting@redhat.com>2008-02-01 21:04:17 +0000
commit1bfe14b806b5fe133b27d42ac8e4f97dae695b08 (patch)
tree1d294fcd1f837d38f67ba6044b7af17d27475933
parent810bea627d425b2cf3fee592d8ac1045b5beb8b7 (diff)
downloadinitscripts-1bfe14b806b5fe133b27d42ac8e4f97dae695b08.tar
initscripts-1bfe14b806b5fe133b27d42ac8e4f97dae695b08.tar.gz
initscripts-1bfe14b806b5fe133b27d42ac8e4f97dae695b08.tar.bz2
initscripts-1bfe14b806b5fe133b27d42ac8e4f97dae695b08.tar.xz
initscripts-1bfe14b806b5fe133b27d42ac8e4f97dae695b08.zip
keep one old copy of dmesg around (#426538)
-rwxr-xr-xrc.d/rc.sysinit1
1 files changed, 1 insertions, 0 deletions
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