diff options
author | Mystery Man <unknown@mandriva.org> | 2004-01-09 21:14:12 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2004-01-09 21:14:12 +0000 |
commit | 426b28dc63b1a571898e8edd580a0134e0239499 (patch) | |
tree | 8fbcfd82a41f005786abe4a1b1f1eef4cca01166 /move/tree/mdk_behind_totem | |
parent | 9fc2f8c1fe91c12ae413617392b02ad12571d361 (diff) | |
download | drakx-9_3_15mdk.tar drakx-9_3_15mdk.tar.gz drakx-9_3_15mdk.tar.bz2 drakx-9_3_15mdk.tar.xz drakx-9_3_15mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V9_3_15mdk'.V9_3_15mdk
Diffstat (limited to 'move/tree/mdk_behind_totem')
-rwxr-xr-x | move/tree/mdk_behind_totem | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem deleted file mode 100755 index 62618ea93..000000000 --- a/move/tree/mdk_behind_totem +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -ok=1 - -while [ -n "$1" ]; do - case "$1" in - --boot-loop) - boot_loop="$2" - shift - shift - ;; - --main-loop) - main_loop="$2" - shift - shift - ;; - --totem-pid) - totem_pid="$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_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 - - ln -sf /image/lib / - - mdk_move_loop to_cdrom always always_i18n totem nvidia - - # tell kicker that it should refetch menu's icons - dcop kicker ksycoca notifyDatabaseChanged '(' ')' -} - -while [ -e "/proc/$totem_pid" ]; do - echo "waiting..." - /image_totem/bin/sleep 1 -done - -mount_cd |