From 605e7fad72bdf94f15587c7824fb4ea977c8e4a3 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 19 Oct 2009 20:34:32 +0200 Subject: Taking noprompt into account for USB flash drives as well. --- debian/live-initramfs.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/live-initramfs.init b/debian/live-initramfs.init index 3204924..5c79401 100644 --- a/debian/live-initramfs.init +++ b/debian/live-initramfs.init @@ -161,9 +161,10 @@ do_stop () eject -p -m /live/image >/dev/null 2>&1 fi - [ "$prompt" ] || return 0 fi + [ "$prompt" ] || return 0 + stty sane < /dev/console printf "\n\n${MESSAGE} and press ENTER to continue:" > /dev/console -- cgit v1.2.3