summaryrefslogtreecommitdiffstats
path: root/core/modules/kexec-reboot/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/kexec-reboot/module.build')
-rw-r--r--core/modules/kexec-reboot/module.build19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/modules/kexec-reboot/module.build b/core/modules/kexec-reboot/module.build
new file mode 100644
index 00000000..fa7038b8
--- /dev/null
+++ b/core/modules/kexec-reboot/module.build
@@ -0,0 +1,19 @@
+#!/bin/bash
+fetch_source() {
+ :
+}
+
+build() {
+
+ local BIN_LOCATION="$(which kexec)"
+ [ ! -z "${BIN_LOCATION}" ] && BIN_LOCATION=$(readlink -f "$BIN_LOCATION")
+ if [ ! -z "${BIN_LOCATION}" -a -e "${BIN_LOCATION}" ]; then
+ tarcopy "${BIN_LOCATION}" "${MODULE_BUILD_DIR}"
+ else
+ perror "'kexec' not found on the system! Please install it."
+ fi
+}
+
+post_copy() {
+ :
+}