From fc54afb098f4d12153857e779d34af531875b1cd Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 27 Nov 2003 14:36:04 +0000 Subject: if /image is a symlink, don't try to umount and so don't fail --- move/tree/mdk_behind_totem | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'move') 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 } -- cgit v1.2.1