Author: bdubbs
Date: 2011-11-14 13:46:34 -0700 (Mon, 14 Nov 2011)
New Revision: 9662
Modified:
trunk/BOOK/bootscripts/lfs/init.d/rc
Log:
Tweak when boot log is saved
Modified: trunk/BOOK/bootscripts/lfs/init.d/rc
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/rc 2011-11-14 20:40:06 UTC (rev
9661)
+++ trunk/BOOK/bootscripts/lfs/init.d/rc 2011-11-14 20:46:34 UTC (rev
9662)
@@ -203,15 +203,14 @@
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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page