Merging casper 1.199.
[live-boot-grml.git] / scripts / live-bottom / 99hook
index dd027ab..8809800 100755 (executable)
@@ -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})"