summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/99hook
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/99hook')
-rwxr-xr-xscripts/live-bottom/99hook50
1 files changed, 0 insertions, 50 deletions
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook
deleted file mode 100755
index 8809800..0000000
--- a/scripts/live-bottom/99hook
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/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
-
-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