Adding casper 1.71+debian-1.
[live-boot-grml.git] / debian / casper.init
index c69e387..ae1a1a4 100644 (file)
@@ -64,11 +64,11 @@ do_stop ()
        eject -p -m /live_media >/dev/null 2>&1
 
        # XXX - i18n
-       echo -n "Please remove the disc and close the tray (if any) then press ENTER: "
+       echo "Please remove the disc and close the tray (if any) then press ENTER: "
        if [ -x /sbin/usplash_write ]; then
-               /sbin/usplash_write "TIMEOUT 0"
-               /sbin/usplash_write "TEXT Please remove the disc, close the tray (if any)"
-               /sbin/usplash_write "TEXT and press ENTER to continue"
+               /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
@@ -76,8 +76,10 @@ do_stop ()
 
 case "$1" in
        start|restart|reload|force-reload|status)
+               [ "$VERBOSE" != no ] && log_end_msg 0
                ;;
        stop)
+               log_begin_msg "Caching reboot files..."
                do_stop
                case "$?" in
                        0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
@@ -85,7 +87,7 @@ case "$1" in
                esac
                ;;
        *)
-               echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+               log_success_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
                exit 3
                ;;
 esac