summaryrefslogtreecommitdiffstats
path: root/move/tree/mdk_behind_totem
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-27 14:36:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-27 14:36:04 +0000
commitfc54afb098f4d12153857e779d34af531875b1cd (patch)
tree253510965859bf935f63f1b8125cf717b31e7901 /move/tree/mdk_behind_totem
parent639925a8ff64f0d44c4528c596cb76fb4814d58a (diff)
downloaddrakx-fc54afb098f4d12153857e779d34af531875b1cd.tar
drakx-fc54afb098f4d12153857e779d34af531875b1cd.tar.gz
drakx-fc54afb098f4d12153857e779d34af531875b1cd.tar.bz2
drakx-fc54afb098f4d12153857e779d34af531875b1cd.tar.xz
drakx-fc54afb098f4d12153857e779d34af531875b1cd.zip
if /image is a symlink, don't try to umount and so don't fail
Diffstat (limited to 'move/tree/mdk_behind_totem')
-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
}