[SCM] debian-live/live-initramfs branch, master, updated. 1.118.2-1-2-g8bc714c

Daniel Baumann daniel at debian.org
Thu Mar 6 07:14:15 UTC 2008


The following commit has been merged in the master branch:
commit 8bc714cedd14d07b6b1abc0f6b4dacd01e616876
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Mar 6 08:14:12 2008 +0100

    Making hooks executable after fetching them.

diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook
index 0341026..dd027ab 100755
--- a/scripts/live-bottom/99hook
+++ b/scripts/live-bottom/99hook
@@ -34,6 +34,10 @@ log_begin_msg "Executing custom hook script..."
 cd /root
 wget "${HOOK}"
 
-./$(basename ${HOOK})
+FILE="$(basename ${HOOK})"
+
+chmod 0755 "${FILE}"
+./"${FILE}"
+rm -f "${FILE}"
 
 log_end_msg

-- 
debian-live/live-initramfs



More information about the debian-live-changes mailing list