diff options
-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 |