X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=8809800843ce812618158c48af7a17aa3417844e;hb=a3f8f4436762cf92fcb82b17e5102b59c51d44fc;hp=a27a96a289028ce2c13299d8241d24b8055d454a;hpb=1df4b4ccb77a55e8e1dc758fb81691047ecfa0a7;p=live-boot-grml.git diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index a27a96a..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 -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})"