diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:30 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:30 +0200 |
| commit | 37da8fbf533df42e99210774e8b7b5a3a095ab59 (patch) | |
| tree | 656532c8271a2b6c45921b77f7e2579bcf7c4d51 /debian/casper.init | |
| parent | 9fda4b0552744a305a699855e2ad3907e8cab164 (diff) | |
| download | live-boot-37da8fbf533df42e99210774e8b7b5a3a095ab59.tar.gz live-boot-37da8fbf533df42e99210774e8b7b5a3a095ab59.zip | |
Adding casper 1.81+debian-2.
Diffstat (limited to 'debian/casper.init')
| -rw-r--r-- | debian/casper.init | 30 |
1 files changed, 20 insertions, 10 deletions
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 |
