X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=8809800843ce812618158c48af7a17aa3417844e;hb=30d8972aa25fd49dd01aa042155a48bd49c0ae2d;hp=0341026b7e24d2f1c459f8c5e7ed723d1fd80e83;hpb=b0c0f013bca8a2e8ea61fddf4a6676ebb30b6d2b;p=live-boot-grml.git diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index 0341026..8809800 100755 --- a/scripts/live-bottom/99hook +++ b/scripts/live-bottom/99hook @@ -27,13 +27,24 @@ 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}" -./$(basename ${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})" + +chmod 0755 "${FILE}" +./"${FILE}" +rm -f "${FILE}" log_end_msg