[SCM] live-initramfs branch, master, updated. 1.157.4-1-6-g836b877
Daniel Baumann
daniel at debian.org
Sun Oct 25 08:51:19 UTC 2009
The following commit has been merged in the master branch:
commit 836b87736abd070d117eb70498628c96d3e613d1
Author: Luigi Capriotti <l.capriotti at xbmc.org>
Date: Sun Oct 25 09:50:07 2009 +0100
Also allowing hook= to specify files inside the image through file:// prefix.
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook
index 17895ca..8809800 100755
--- a/scripts/live-bottom/99hook
+++ b/scripts/live-bottom/99hook
@@ -32,7 +32,14 @@ log_begin_msg "Executing custom hook script"
# live-initramfs script
cd /root
-chroot /root wget "${HOOK}"
+
+if [ $(echo "${HOOK}" | grep file:\/\/) ]
+then
+ LOCALFILE=$(echo ${HOOK} | sed "s/file\:\/\///")
+ cp ${LOCALFILE} /root
+else
+ chroot /root wget "${HOOK}"
+fi
FILE="$(basename ${HOOK})"
--
live-initramfs
More information about the debian-live-changes
mailing list