[SCM] debian-live/live-initramfs branch, master, updated. 1.118-1-7-g01e5956

Daniel Baumann daniel at debian.org
Fri Feb 29 13:27:17 UTC 2008


The following commit has been merged in the master branch:
commit 01e5956442fa667686ddc8640a3bad109e7adbf5
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Feb 29 14:27:15 2008 +0100

    Adding hook parameter to execute custom scripts.

diff --git a/scripts/live b/scripts/live
index 0280edd..ea770f4 100755
--- a/scripts/live
+++ b/scripts/live
@@ -60,6 +60,11 @@ Arguments ()
                                 export FETCH
                                 ;;
 
+			hook=*)
+				HOOK="${ARGUMENT#hook=}"
+				export HOOK
+				;;
+
 			hostname=*)
 				HOSTNAME="${ARGUMENT#hostname=}"
 				LIVECONF="changed"
diff --git a/scripts/live-bottom/34disable_kwallet b/scripts/live-bottom/99hook
similarity index 69%
copy from scripts/live-bottom/34disable_kwallet
copy to scripts/live-bottom/99hook
index 79c895a..0341026 100755
--- a/scripts/live-bottom/34disable_kwallet
+++ b/scripts/live-bottom/99hook
@@ -20,17 +20,20 @@ esac
 
 # live-initramfs header
 
-if [ -n "${NOKWALLET}" ]
+if [ -z "${HOOK}" ]
 then
 	exit 0
 fi
 
 . /scripts/live-functions
 
-log_begin_msg "Disabling kwallet..."
+log_begin_msg "Executing custom hook script..."
 
 # live-initramfs script
 
-rm -f /root/usr/share/services/kded/kwalletd.desktop
+cd /root
+wget "${HOOK}"
+
+./$(basename ${HOOK})
 
 log_end_msg

-- 
debian-live/live-initramfs



More information about the debian-live-changes mailing list