diff options
| author | Luigi Capriotti <l.capriotti@xbmc.org> | 2009-10-25 09:50:07 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:06 +0100 |
| commit | f23b71dd4dd681a155cd175f1dd8f9799dd1ed4e (patch) | |
| tree | 371d10c4aee704576d638d860edf0cefc0714246 /scripts/live-bottom | |
| parent | ad5e4f93d8fdf7cd5484e03981bf043fc7119995 (diff) | |
| download | live-boot-f23b71dd4dd681a155cd175f1dd8f9799dd1ed4e.tar.gz live-boot-f23b71dd4dd681a155cd175f1dd8f9799dd1ed4e.zip | |
Also allowing hook= to specify files inside the image through file:// prefix.
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/99hook | 9 |
1 files changed, 8 insertions, 1 deletions
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})" |
