Tweak when boot log is saved

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2011-11-14 20:46:34 +00:00
parent 9813d5e328
commit a64fd5aa90

View File

@ -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