Author: alexander
Date: 2007-05-09 05:36:23 -0600 (Wed, 09 May 2007)
New Revision: 1885

Modified:
   trunk/scripts/shutdown-helper
Log:
Ensured clean shutdown in the "toram" case


Modified: trunk/scripts/shutdown-helper
===================================================================
--- trunk/scripts/shutdown-helper       2007-05-09 08:13:49 UTC (rev 1884)
+++ trunk/scripts/shutdown-helper       2007-05-09 11:36:23 UTC (rev 1885)
@@ -35,6 +35,13 @@
                HALT="/sbin/reboot -d -f -i"
                ;;
 esac
+
+if [ ! -b /dev/lfs-cd ] ; then
+       # The CD has been loaded into RAM
+       $HALT
+       while true ; do sleep 1 ; done
+fi
+
 mkdir /dev/shm/old /dev/shm/proc /dev/shm/etc
 ln -s /proc/mounts /dev/shm/etc/mtab
 echo "$FILES" | cpio -pLd --quiet /dev/shm

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to