summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmove/tree/mdk_behind_totem6
1 files changed, 4 insertions, 2 deletions
diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem
index e098f0196..094c70d83 100755
--- a/move/tree/mdk_behind_totem
+++ b/move/tree/mdk_behind_totem
@@ -42,8 +42,10 @@ umount_cd() {
ln -sf /image_always/lib /
- umount /image && \
- /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; }
+ if [ ! -l /image ]; then
+ umount /image && \
+ /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; }
+ fi
/image_always/usr/bin/eject
}