summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJonathan Bauer2018-01-29 15:17:00 +0100
committerJonathan Bauer2018-01-29 15:17:00 +0100
commit0405372844b9bed7da8af5ac1f4d9665d4e99531 (patch)
treea0af684e2c15a46c27f392dab0c733ba14ac9440 /core
parent[chroot] perror if touching whiteout list failed (diff)
downloadmltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.tar.gz
mltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.tar.xz
mltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.zip
[screen-standby] depend on xorg + copy xset
Diffstat (limited to 'core')
-rw-r--r--core/modules/screen-standby/module.build10
-rw-r--r--core/modules/screen-standby/module.conf5
2 files changed, 15 insertions, 0 deletions
diff --git a/core/modules/screen-standby/module.build b/core/modules/screen-standby/module.build
index 5fa3a36f..8de1bdd1 100644
--- a/core/modules/screen-standby/module.build
+++ b/core/modules/screen-standby/module.build
@@ -4,6 +4,16 @@ fetch_source() {
}
build() {
+
+ for BIN in $REQUIRED_BINARIES; do
+ BIN_LOCATION=$(which ${BIN})
+ if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ]; then
+ tarcopy "$(get_link_chain ${BIN_LOCATION})" "${MODULE_BUILD_DIR}"
+ else
+ perror "'${BIN}' not found on the system."
+ fi
+ done
+
COPYLIST="list_dpkg_output"
list_packet_files > "$COPYLIST"
tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"
diff --git a/core/modules/screen-standby/module.conf b/core/modules/screen-standby/module.conf
index da54d2dd..1e03a8b8 100644
--- a/core/modules/screen-standby/module.conf
+++ b/core/modules/screen-standby/module.conf
@@ -1,5 +1,10 @@
#!/bin/bash
+REQUIRED_MODULES="
+ xorg
+"
REQUIRED_BINARIES="
+ setterm
+ xset
"
REQUIRED_LIBRARIES=""
REQUIRED_DIRECTORIES="