From e1e3850fdff9898fc1a22841bf71ff5dfdbcadde Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 19 Oct 2009 20:34:32 +0200 Subject: [PATCH] Taking noprompt into account for USB flash drives as well. --- debian/live-initramfs.init | 3 ++- manpages/live-initramfs.en.7.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 diff --git a/manpages/live-initramfs.en.7.txt b/manpages/live-initramfs.en.7.txt index 4a70f27..f68e87c 100644 --- a/manpages/live-initramfs.en.7.txt +++ b/manpages/live-initramfs.en.7.txt @@ -192,7 +192,7 @@ been installed with persistent enabled. noprompt -Do not prompt to eject the CD on reboot. +Do not prompt to eject the CD or remove the USB flash drive on reboot. nosudo:: -- 2.1.4