diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-06 22:56:50 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-06 22:56:50 +0000 |
commit | 3684929676de81c6eabd9d5333f557834efba33f (patch) | |
tree | 89c287af8b4b876acec1e819b95649f0d4e0b90d | |
parent | b64692ddd130c43f3b0ba9665bb3945bc46ff485 (diff) | |
download | drakx-3684929676de81c6eabd9d5333f557834efba33f.tar drakx-3684929676de81c6eabd9d5333f557834efba33f.tar.gz drakx-3684929676de81c6eabd9d5333f557834efba33f.tar.bz2 drakx-3684929676de81c6eabd9d5333f557834efba33f.tar.xz drakx-3684929676de81c6eabd9d5333f557834efba33f.zip |
- various fixes (including adding /bin/sleep to totem.list and using it)
- mdk_totem is now written in perl
-rw-r--r-- | move/data/totem.list | 2 | ||||
-rwxr-xr-x | move/tree/mdk_behind_totem | 8 | ||||
-rwxr-xr-x | move/tree/mdk_totem | 20 |
3 files changed, 15 insertions, 15 deletions
diff --git a/move/data/totem.list b/move/data/totem.list index d06d35f61..7abed7ee0 100644 --- a/move/data/totem.list +++ b/move/data/totem.list @@ -1,7 +1,9 @@ +/tmp/live_tree/bin/sleep /tmp/live_tree/lib/i686 /tmp/live_tree/usr/X11R6/lib/libXi.so.6.0 /tmp/live_tree/usr/X11R6/lib/libXrandr.so.2.0 /tmp/live_tree/usr/X11R6/lib/libXtst.so.6.1 +/tmp/live_tree/usr/bin/mdk_behind_totem /tmp/live_tree/usr/bin/totem /tmp/live_tree/usr/lib/gnome-vfs-2.0/modules/libfile.so /tmp/live_tree/usr/lib/gtk-2.0/2.2.0/engines/libgalaxy.so diff --git a/move/tree/mdk_behind_totem b/move/tree/mdk_behind_totem index 11ef2ae22..f8f198cf2 100755 --- a/move/tree/mdk_behind_totem +++ b/move/tree/mdk_behind_totem @@ -33,7 +33,7 @@ if [ -z "$totem_pid" -o -z "$ok" ]; then exit 1 fi -exec 2> /tmp/mdk_behind_totem.log +exec &> /tmp/mdk_behind_totem.log trap 'umount_cd' USR1 @@ -52,10 +52,10 @@ umount_cd() { mount_cd() { echo mount_cd - /image_always/sbin/losetup -r -e gz /image_raw/live_tree.clp /dev/$main_loop + /image_always/sbin/losetup -r -e gz /dev/$main_loop /image_raw/live_tree.clp /image_always/bin/mount /dev/$main_loop /image - losetup -r -e gz /image_raw/live_tree_boot.clp /dev/$boot_loop + losetup -r -e gz /dev/$boot_loop /image_raw/live_tree_boot.clp mount /dev/$boot_loop /image_boot ln -sf /image/lib / @@ -65,7 +65,7 @@ mount_cd() { while [ -e "/proc/$totem_pid" ]; do echo "waiting..." - sleep 1 + /image_totem/bin/sleep 1 done mount_cd diff --git a/move/tree/mdk_totem b/move/tree/mdk_totem index 857089a1c..f340c6303 100755 --- a/move/tree/mdk_totem +++ b/move/tree/mdk_totem @@ -1,14 +1,12 @@ -#!/bin/sh -x +#!/usr/bin/perl -# kill 15, fuzzy_pidofs(qr/\bkded\b/); -# kdesud +system('mdk_move_loop', 'to_memory', 'always', 'totem'); -# done ASAP since it needs to be done and will speed up totem launch -mdk_move_loop to_memory always totem +my $totem_pid = $$; -cp -a /image_raw/{totem,mdk_behind_totem} /tmp - -sudo /tmp/mdk_behind_totem --totem-pid $$ & -export MDKMOVE=$! - -exec /tmp/totem "$@" +if (my $pid = fork()) { + $ENV{MDKMOVE} = $pid; + exec 'totem'; +} else { + exec 'sudo', 'mdk_behind_totem', '--totem-pid', $totem_pid; +} |