X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=17895ca103e2b79b287bd18d324f7f599d5211f7;hb=8144f957e4f61ee26c1e56719a78ca4f97073aeb;hp=0341026b7e24d2f1c459f8c5e7ed723d1fd80e83;hpb=037b3b3c1fc5a6079b011071b2bb6494249b00fb;p=live-boot-grml.git diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index 0341026..17895ca 100755 --- a/scripts/live-bottom/99hook +++ b/scripts/live-bottom/99hook @@ -27,13 +27,17 @@ 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}" +chroot /root wget "${HOOK}" -./$(basename ${HOOK}) +FILE="$(basename ${HOOK})" + +chmod 0755 "${FILE}" +./"${FILE}" +rm -f "${FILE}" log_end_msg