Adding live-initramfs 1.87.1-1.
[live-boot-grml.git] / debian / init
similarity index 80%
rename from debian/casper.init
rename to debian/init
index 80066d0..4e53eff 100644 (file)
@@ -71,27 +71,17 @@ do_stop ()
         cache_path "$path"
     done
 
-    for x in $(cat /proc/cmdline); do
-        case $x in
-            quickreboot)
-                QUICKREBOOT="Yes"
-            ;;
-        esac
-    done
-
-    if [ -z ${QUICKREBOOT} ]; then
-        eject -p -m /live_media >/dev/null 2>&1
-
-        # XXX - i18n
-        echo "Please remove the disc and close the tray (if any) then press ENTER: "
-        if [ -x /sbin/usplash_write ]; then
-            /sbin/usplash_write "TIMEOUT 86400"
-            /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
-            /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
-        fi
-
-        read x < /dev/console
+    eject -p -m /cdrom >/dev/null 2>&1
+
+    # XXX - i18n
+    echo "Please remove the disc and close the tray (if any) then press ENTER: "
+    if [ -x /sbin/usplash_write ]; then
+        /sbin/usplash_write "TIMEOUT 86400"
+        /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
+        /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
     fi
+
+    read x < /dev/console
 }
 
 case "$1" in