X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=debian%2Flive-boot.init;h=2974c239801bbf3557c09a206c7bc26adf924e21;hb=b927be2f137bcad520852be4fb9afb1e1ced420b;hp=1a85267d5f51e6bea044da631109cccd87ef4998;hpb=bf48bb911a7b3968b37b550d3746e278c2b46bd1;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index 1a85267..2974c23 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 ;; *)