X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Finit.d%2Fgrml-reboot;h=a7995b326a8694effa62f5488c7bec628dd66b61;hb=8d33c1b163a111789d831e2bf7c0cc47960d44cf;hp=4cc241a9aba52188c013b1714259a3b1f026fdf4;hpb=293f903e7627d30b5157e45150fb3545a5ded93d;p=grml-etc.git diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index 4cc241a..a7995b3 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Jun 26 00:08:30 CEST 2007 [mika] +# Latest change: Fre Nov 16 11:37:58 CET 2007 [mika] ################################################################################ export PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -19,7 +19,7 @@ exec >/dev/console 2>&1 /dev/null 2>&1 & mysleep "$GREEN" @@ -176,10 +175,11 @@ log_end_msg 0 if [ -z "$INSTALLED" -a -z "$NOPROMPT" ]; then # do not prompt for removal when running in grml2ram mode: - if ! mount | grep -q 'on /cdrom ' ; then + if ! mount | grep -qe 'on /cdrom' -qe 'on /live/image' ; then echo "CD not mounted, nothing to eject therefore." else - umount -l /cdrom + [ -d /live/image ] && umount -l /live/image + [ -d /cdrom ] && umount -l /cdrom [ -n "$CDROM" -a -z "$NOEJECT" ] && eject -p "$CDROM" 2>/dev/null echo read -s -p "${GREEN}Please remove CD, close cdrom drive and hit return [auto 2 minutes].${NORMAL}" -t 120 a