X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F99hook;h=a27a96a289028ce2c13299d8241d24b8055d454a;hb=f0d756e45675fbf829e8ee71ded7c42126dd43ab;hp=0341026b7e24d2f1c459f8c5e7ed723d1fd80e83;hpb=037b3b3c1fc5a6079b011071b2bb6494249b00fb;p=live-boot-grml.git diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook index 0341026..a27a96a 100755 --- a/scripts/live-bottom/99hook +++ b/scripts/live-bottom/99hook @@ -32,8 +32,12 @@ 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