diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2011-11-14 20:46:34 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2011-11-14 20:46:34 +0000 |
commit | a64fd5aa905b76e7b835c2dc724bbb7c052b3755 (patch) | |
tree | a5ffac4af9ed76584e8493420fbc4f13172402d9 | |
parent | 9813d5e3286943ca93588175603e1fec966d1e49 (diff) |
Tweak when boot log is saved
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | bootscripts/lfs/init.d/rc | 15 |
1 files 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 |