summaryrefslogtreecommitdiffstats
path: root/core/modules/kexec-reboot/module.build
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-15 13:20:33 +0100
committerJonathan Bauer2018-02-15 13:20:33 +0100
commit510ae767a5abe5812ceab620ed6c5748cecaf36b (patch)
treef22caa34cb605f1116ca6a60a1b6e07d19d47c6c /core/modules/kexec-reboot/module.build
parent[run-virt] relax /tmp mount detection regex (diff)
downloadmltk-510ae767a5abe5812ceab620ed6c5748cecaf36b.tar.gz
mltk-510ae767a5abe5812ceab620ed6c5748cecaf36b.tar.xz
mltk-510ae767a5abe5812ceab620ed6c5748cecaf36b.zip
[kexec-reboot] fast reboot via kexec
bound to ctrl-alt-del on ttys TODO enable Xorg support
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() {
+ :
+}