X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Flive-boot.init;h=f0982a8e9aad130120dc19258c5a030b19926128;hb=6b21c571a2c065b10f1048a8827ee72bf67f5f5c;hp=dd338b1e10dce060021c296d46db96879d326df2;hpb=274ce8e4e2b902e4e7b4871c284cee0285cf18a6;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index dd338b1..f0982a8 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -136,7 +136,7 @@ do_stop () fi prompt=1 - if [ ${NOPROMPT} = "Yes" ] + if [ "${NOPROMPT}" = "Yes" ] then prompt= fi @@ -155,6 +155,8 @@ do_stop () esac done + mount -o remount,ro /live/cow + if [ -z ${QUICKREBOOT} ] then @@ -171,14 +173,14 @@ do_stop () # "ejected" state even after reboot MESSAGE="Please remove the USB flash drive" - if [ ${NOPROMPT} = "usb" ] + 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 @@ -233,8 +235,6 @@ case "${1}" in [ "${VERBOSE}" != no ] && log_end_msg 1 ;; esac - - mount -o remount,ro /live/cow ;; *)