Making medium removal message working again with usplash.
authorDaniel Baumann <daniel@debian.org>
Sat, 7 Feb 2009 23:41:20 +0000 (00:41 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:04 +0000 (17:48 +0100)
debian/live-initramfs.init

index 6a97b45..4371a1a 100644 (file)
@@ -126,17 +126,16 @@ do_stop ()
                        eject -p -m /live/image >/dev/null 2>&1
                        MESSAGE="Please remove the disc, close the the tray (if any)"
                fi
-               MESSAGE="${MESSAGE} and press ENTER to continue:"
 
                [ "$prompt" ] || return 0
        fi
 
        stty sane < /dev/console
 
-       echo -n -e "\n\n${MESSAGE}" > /dev/console
+       echo -n -e "\n\n${MESSAGE} and press ENTER to continue:" > /dev/console
        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 ${MESSAGE}"
            /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
        fi