diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:25:54 +0100 |
commit | 3d52fbcb4fe70132ade14759d76573b471294800 (patch) | |
tree | 7ee8e69a62e032cb427e6b3ae96481ae4e8c9df8 /debian/init | |
parent | 9fc9e2a1a11b0edada38cb501fefe4f58aa414ac (diff) | |
download | live-boot-3d52fbcb4fe70132ade14759d76573b471294800.tar.gz live-boot-3d52fbcb4fe70132ade14759d76573b471294800.zip |
Adding live-initramfs 1.87.3-1.
Diffstat (limited to 'debian/init')
-rw-r--r-- | debian/init | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/debian/init b/debian/init index 7c0dbe9..a7274bd 100644 --- a/debian/init +++ b/debian/init @@ -1,20 +1,21 @@ -#! /bin/sh +#!/bin/sh + ### BEGIN INIT INFO -# Provides: live-initramfs -# Required-Start: $syslog -# Required-Stop: $syslog -# Should-Start: $local_fs -# Should-Stop: $local_fs -# Default-Start: 1 2 3 4 5 -# Default-Stop: 0 6 -# Short-Description: Casper init script -# Description: Resyncs snapshots, evantually caches files in order -# to let remove the media. +# Provides: live-initramfs +# Required-Start: $syslog +# Required-Stop: $syslog +# Should-Start: $local_fs +# Should-Stop: $local_fs +# Default-Start: 1 2 3 4 5 +# Default-Stop: 0 6 +# Short-Description: live-initramfs init script +# Description: Resyncs snapshots, evantually caches files in order to +# let remove the media. ### END INIT INFO -# Author: Tollef Fog Heen <tfheen@canonical.com> -# Marco Amadori <marco.amadori@gmail.com> -# +# Authors: Tollef Fog Heen <tfheen@canonical.com> +# Marco Amadori <marco.amadori@gmail.com> + PATH=/usr/sbin:/usr/bin:/sbin:/bin NAME=live-initramfs SCRIPTNAME=/etc/init.d/${NAME} @@ -71,17 +72,27 @@ do_stop () cache_path "$path" done - eject -p -m /cdrom >/dev/null 2>&1 + 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 + # 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 + read x < /dev/console + fi } case "$1" in |