X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=8809800843ce812618158c48af7a17aa3417844e;hb=5b69e4b92b73d30b9efedcc291cfb45e2ec10a37;hp=dd027abbe24e381f35e8531417c701e68e8fa7fa;hpb=0a8b96fdc1ada7bfc65c1949893f8140b3ef2b28;p=live-boot-grml.git diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index dd027ab..8809800 100755 --- a/scripts/live-bottom/99hook +++ b/scripts/live-bottom/99hook @@ -27,12 +27,19 @@ fi . /scripts/live-functions -log_begin_msg "Executing custom hook script..." +log_begin_msg "Executing custom hook script" # live-initramfs script cd /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})"