Taking noprompt into account for USB flash drives as well.
authorintrigeri <intrigeri@boum.org>
Mon, 19 Oct 2009 18:34:32 +0000 (20:34 +0200)
committerDaniel Baumann <daniel@debian.org>
Sun, 31 Jan 2010 12:52:59 +0000 (13:52 +0100)
debian/live-initramfs.init
manpages/live-initramfs.en.7.txt

index 3204924..5c79401 100644 (file)
@@ -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
index 4a70f27..f68e87c 100644 (file)
@@ -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::