summaryrefslogtreecommitdiffstats
path: root/move/tree
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-10-31 12:18:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-10-31 12:18:07 +0000
commit086c01b6d85d3c300908c7c74ee1bce8159611e3 (patch)
tree9bff7b9365a7c3ed1a6247736ea91617a64d792f /move/tree
parente1084146106149fb8f1fbd4d17ad30d0cd8251b7 (diff)
downloaddrakx-086c01b6d85d3c300908c7c74ee1bce8159611e3.tar
drakx-086c01b6d85d3c300908c7c74ee1bce8159611e3.tar.gz
drakx-086c01b6d85d3c300908c7c74ee1bce8159611e3.tar.bz2
drakx-086c01b6d85d3c300908c7c74ee1bce8159611e3.tar.xz
drakx-086c01b6d85d3c300908c7c74ee1bce8159611e3.zip
- add sudo for all commands
- add mdk_move_boot_loop called in autostart
Diffstat (limited to 'move/tree')
-rwxr-xr-xmove/tree/mdk_move_boot_loop10
-rw-r--r--move/tree/mdk_move_boot_loop.desktop7
-rw-r--r--move/tree/sudoers1
3 files changed, 18 insertions, 0 deletions
diff --git a/move/tree/mdk_move_boot_loop b/move/tree/mdk_move_boot_loop
new file mode 100755
index 000000000..3eef500ab
--- /dev/null
+++ b/move/tree/mdk_move_boot_loop
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+echo losetup >> /tmp/.log
+free >> /tmp/.log
+date >> /tmp/.log
+if sudo losetup /dev/loop0 2>/dev/null | grep -q live_tree_boot; then
+ sudo losetup /dev/loop0 /image_raw/live_tree_boot.clp
+ sudo rm -f /live_tree_boot.clp
+fi
+free >> /tmp/.log
diff --git a/move/tree/mdk_move_boot_loop.desktop b/move/tree/mdk_move_boot_loop.desktop
new file mode 100644
index 000000000..d62b0a7d8
--- /dev/null
+++ b/move/tree/mdk_move_boot_loop.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Move Move Loop
+Exec=mdk_move_boot_loop
+Type=Application
+Terminal=0
+X-KDE-autostart-after=panel
+X-KDE-StartupNotify=false
diff --git a/move/tree/sudoers b/move/tree/sudoers
new file mode 100644
index 000000000..49615de98
--- /dev/null
+++ b/move/tree/sudoers
@@ -0,0 +1 @@
+ALL ALL = NOPASSWD: ALL