diff options
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/99hook | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook new file mode 100755 index 0000000..0341026 --- /dev/null +++ b/scripts/live-bottom/99hook @@ -0,0 +1,39 @@ +#!/bin/sh + +#set -e + +# initramfs-tools header + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +# live-initramfs header + +if [ -z "${HOOK}" ] +then + exit 0 +fi + +. /scripts/live-functions + +log_begin_msg "Executing custom hook script..." + +# live-initramfs script + +cd /root +wget "${HOOK}" + +./$(basename ${HOOK}) + +log_end_msg |
