X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=8809800843ce812618158c48af7a17aa3417844e;hb=24b9fd1c70013f5847d3a4658e56bd44534e7890;hp=17895ca103e2b79b287bd18d324f7f599d5211f7;hpb=5f0f3b0c36d433a462176f970d371c77c3020749;p=live-boot-grml.git 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})"