projects
/
grml-scripts-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for release 1.1.28
[grml-scripts-core.git]
/
usr_sbin
/
grml2ram
diff --git
a/usr_sbin/grml2ram
b/usr_sbin/grml2ram
index
b0ba4e6
..
dd038d2
100755
(executable)
--- a/
usr_sbin/grml2ram
+++ b/
usr_sbin/grml2ram
@@
-4,7
+4,6
@@
# Authors: (c) Michael Schierl <schierlm-public@gmx.de>, (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: (c) Michael Schierl <schierlm-public@gmx.de>, (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Son Sep 30 16:04:17 CEST 2007 [mika]
################################################################################
set -e
################################################################################
set -e
@@
-55,9
+54,16
@@
close LOOP;
close DEST;
EOF
close DEST;
EOF
+# identify cd-rom:
+GRMLDEV=$(awk '{if ($2 ~ /^\/live\/image$/ ) print $1}' /etc/mtab)
+if [ -z "$GRMLDEV" ]; then
+ GRMLDEV=$(awk '{if ($2 ~ /^\/cdrom$/ ) print $1}' /etc/mtab)
+fi
+[ -n "$GRMLDEV" ] || GRMLDEV='/dev/cdrom'
+
einfo "Unmounting cdrom"
[ -d /live/image ] && umount /live/image || umount /cdrom
eend $?
einfo "Unmounting cdrom"
[ -d /live/image ] && umount /live/image || umount /cdrom
eend $?
-einfo "Now you can eject your grml-cd (e.g. run 'eject
/dev/cdrom
')." ; eend 0
+einfo "Now you can eject your grml-cd (e.g. run 'eject
$GRMLDEV
')." ; eend 0
## END OF FILE #################################################################
## END OF FILE #################################################################