Переглянути джерело

Tweak when boot log is saved

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 13 роки тому
батько
коміт
a64fd5aa90
1 змінених файлів з 7 додано та 8 видалено
  1. 7 8
      bootscripts/lfs/init.d/rc

+ 7 - 8
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