X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Flive-boot.init;h=f0982a8e9aad130120dc19258c5a030b19926128;hb=1b79297f3f0777d9178f74e83bbd6f13255f9f69;hp=1a85267d5f51e6bea044da631109cccd87ef4998;hpb=bf48bb911a7b3968b37b550d3746e278c2b46bd1;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index 1a85267..f0982a8 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -136,7 +136,7 @@ do_stop () fi prompt=1 - if grep -qs noprompt /proc/cmdline + if [ "${NOPROMPT}" = "Yes" ] then prompt= fi @@ -155,6 +155,8 @@ do_stop () esac done + mount -o remount,ro /live/cow + if [ -z ${QUICKREBOOT} ] then @@ -170,15 +172,26 @@ do_stop () # failes because they actually remember the # "ejected" state even after reboot MESSAGE="Please remove the USB flash drive" + + if [ "${NOPROMPT}" = "usb" ] + then + prompt= + fi + else # ejecting is a very good idea here - MESSAGE="Please remove the disc, close the the tray (if any)" + MESSAGE="Please remove the disc, close the tray (if any)" if [ -x /usr/bin/eject ] then eject -p -m /live/image >/dev/null 2>&1 fi + if [ ${NOPROMPT} = "cd" ] + then + prompt= + fi + fi [ "$prompt" ] || return 0 @@ -222,8 +235,6 @@ case "${1}" in [ "${VERBOSE}" != no ] && log_end_msg 1 ;; esac - - mount -o remount,ro /live/cow ;; *)