projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df567e
)
Also allowing hook= to specify files inside the image through file:// prefix.
author
Luigi Capriotti
<l.capriotti@xbmc.org>
Sun, 25 Oct 2009 08:50:07 +0000
(09:50 +0100)
committer
Daniel Baumann
<daniel@debian.org>
Sun, 31 Jan 2010 12:53:26 +0000
(13:53 +0100)
scripts/live-bottom/99hook
patch
|
blob
|
history
diff --git
a/scripts/live-bottom/99hook
b/scripts/live-bottom/99hook
index
17895ca
..
8809800
100755
(executable)
--- 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})"