X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fcasper.init;h=80066d0c5cab1daec8d0aab443fd7238c6241474;hb=b6a918ee42b1ae85ccd5fc3cd19b78dc8a42492a;hp=6817efd23a4f2801db8ffd26878abc77acb4d21d;hpb=112ee0e018e658f0c6dfb0bee32be19ae67ce00f;p=live-boot-grml.git diff --git a/debian/casper.init b/debian/casper.init index 6817efd..80066d0 100644 --- a/debian/casper.init +++ b/debian/casper.init @@ -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