From a64fd5aa905b76e7b835c2dc724bbb7c052b3755 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 14 Nov 2011 20:46:34 +0000 Subject: Tweak when boot log is saved git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- bootscripts/lfs/init.d/rc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/bootscripts/lfs/init.d/rc b/bootscripts/lfs/init.d/rc index aa1f7696b..5aec5a257 100644 --- a/bootscripts/lfs/init.d/rc +++ b/bootscripts/lfs/init.d/rc @@ -203,15 +203,14 @@ else fi # Copy the boot log on initial boot only -if [ "${previous}" == "N" ]; then +if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then cat /run/var/bootlog >> /var/log/boot.log - - if [ "${runlevel}" != "S" ]; then - # Mark the end of boot - echo "--------" >> /var/log/boot.log - # Remove the temporary file - rm -f /run/var/bootlog 2> /dev/null - fi + + # Mark the end of boot + echo "--------" >> /var/log/boot.log + + # Remove the temporary file + rm -f /run/var/bootlog 2> /dev/null fi # End rc -- cgit v1.2.3-54-g00ecf