From 086c01b6d85d3c300908c7c74ee1bce8159611e3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 31 Oct 2003 12:18:07 +0000 Subject: - add sudo for all commands - add mdk_move_boot_loop called in autostart --- move/Makefile | 4 ++++ move/tree/mdk_move_boot_loop | 10 ++++++++++ move/tree/mdk_move_boot_loop.desktop | 7 +++++++ move/tree/sudoers | 1 + 4 files changed, 22 insertions(+) create mode 100755 move/tree/mdk_move_boot_loop create mode 100644 move/tree/mdk_move_boot_loop.desktop create mode 100644 move/tree/sudoers (limited to 'move') diff --git a/move/Makefile b/move/Makefile index 2214185b3..18688c3d6 100644 --- a/move/Makefile +++ b/move/Makefile @@ -52,6 +52,10 @@ install: build sudo mkdir -p $(DEST_LIVETREE)/move sudo cp -f $(addprefix data/, $(DATA_FILES)) $(DEST_LIVETREE)/move + sudo install -m 600 tree/sudoers $(DEST_LIVETREE)/etc + sudo install -m 644 tree/mdk_move_boot_loop.desktop $(DEST_LIVETREE)/usr/share/autostart + sudo install tree/mdk_move_boot_loop $(DEST_LIVETREE)/usr/bin + grep ChangeLog $(INSTALL)/CVS/Entries > /tmp/version sudo cp -f /tmp/version $(DEST_LIVETREE)/usr/share/VERSION sudo rm -f $(DEST_LIVETREE)/lock 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 -- cgit v1.2.1