Adding casper 1.81+debian-2.
[live-boot-grml.git] / debian / casper.init
index 6817efd..80066d0 100644 (file)
@@ -71,17 +71,27 @@ do_stop ()
         cache_path "$path"
     done
 
-    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
+    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
 
-    read x < /dev/console
+        # 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
+    fi
 }
 
 case "$1" in