summaryrefslogtreecommitdiffstats
path: root/move/tree/mdk_behind_totem
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-09-01 20:27:41 +0000
committerMystery Man <unknown@mandriva.org>2005-09-01 20:27:41 +0000
commitf027d873e1c6f4b372b541cc351c71820a9063cd (patch)
tree4c1914e76177c18cf0a45829bbdf7eb0a92c2435 /move/tree/mdk_behind_totem
parent5d83bfe6f6b331df65d493a78e9ed2f1b30a2464 (diff)
downloaddrakx-backup-do-not-use-10_3_0_51mdk.tar
drakx-backup-do-not-use-10_3_0_51mdk.tar.gz
drakx-backup-do-not-use-10_3_0_51mdk.tar.bz2
drakx-backup-do-not-use-10_3_0_51mdk.tar.xz
drakx-backup-do-not-use-10_3_0_51mdk.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_51mdk
'V10_3_0_51mdk'.
Diffstat (limited to 'move/tree/mdk_behind_totem')
-rwxr-xr-xmove/tree/mdk_behind_totem106
1 files changed, 0 insertions, 106 deletions
diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem
deleted file mode 100755
index 028077821..000000000
--- a/move/tree/mdk_behind_totem
+++ /dev/null
@@ -1,106 +0,0 @@
-#!/bin/bash
-
-ok=1
-
-while [ -n "$1" ]; do
- case "$1" in
- --lang)
- lang="$2"
- shift
- shift
- ;;
- --i18n-loop)
- i18n_loop="$2"
- shift
- shift
- ;;
- --boot-loop)
- boot_loop="$2"
- shift
- shift
- ;;
- --main-loop)
- main_loop="$2"
- shift
- shift
- ;;
- --totem-pid)
- totem_pid="$2"
- shift
- shift
- ;;
- --user)
- USER="$2"
- shift
- shift
- ;;
- --restore-cmd)
- RESTORE_CMD="$2"
- shift
- shift
- ;;
- *)
- ok=''
- shift
- esac
-done
-
-if [ -z "$totem_pid" -o -z "$ok" ]; then
- printf "Usage: mdk_behind_totem [--boot-loop <loop>] [--main-loop <loop>] --totem-pid <pid>\n"
- exit 1
-fi
-
-exec &> /tmp/mdk_behind_totem.log
-
-trap 'umount_cd' USR1
-
-umount_cd() {
- echo umount_cd
-
- umount /image_i18n_$lang
- losetup -d /dev/$i18n_loop
-
- umount /image_boot
- losetup -d /dev/$boot_loop
-
- ln -sf /image_always/lib /
-
- if [ -L /image ]; then
- rm -f /image
- else
- umount /image && \
- /image_always/sbin/losetup -d /dev/$main_loop || { mount_cd; kill $totem_pid; exec mdk_totem; }
- fi
-
- /image_always/usr/bin/eject
-}
-
-mount_cd() {
- echo mount_cd
- if [ -e /cdrom/live_tree.clp ]; then
- /image_always/sbin/losetup -r -e gz /dev/$main_loop /cdrom/live_tree.clp
- /image_always/bin/mount -r /dev/$main_loop /image
- else
- ln -sf /cdrom/live_tree /image
- fi
-
- losetup -r -e gz /dev/$boot_loop /cdrom/live_tree_boot.clp
- mount -r /dev/$boot_loop /image_boot
-
- losetup -r -e gz /dev/$i18n_loop /cdrom/live_tree_i18n_$lang.clp
- mount -r /dev/$i18n_loop /image_i18n_$lang
-
- ln -sf /image/lib /
-
- mdk_move_loop to_cdrom always always_i18n totem nvidia
-
- # restore killed kde apps
- su -c "$RESTORE_CMD" $USER
-}
-
-while [ -e "/proc/$totem_pid" ]; do
- echo "waiting..."
- /image_totem/bin/sleep 1
-done
-
-mount_cd