projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grml-quickconfig: fix keybindings for pekwm vs. pwm3 and drop jwm
[grml-scripts.git]
/
usr_sbin
/
grml2ram
diff --git
a/usr_sbin/grml2ram
b/usr_sbin/grml2ram
index
b0ba4e6
..
6665584
100755
(executable)
--- a/
usr_sbin/grml2ram
+++ b/
usr_sbin/grml2ram
@@
-55,9
+55,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 #################################################################