summaryrefslogtreecommitdiff
path: root/debian/casper.init
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:30 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:30 +0200
commit37da8fbf533df42e99210774e8b7b5a3a095ab59 (patch)
tree656532c8271a2b6c45921b77f7e2579bcf7c4d51 /debian/casper.init
parent9fda4b0552744a305a699855e2ad3907e8cab164 (diff)
downloadlive-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.init30
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