diff options
author | Jonathan Bauer | 2018-01-29 15:17:00 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-01-29 15:17:00 +0100 |
commit | 0405372844b9bed7da8af5ac1f4d9665d4e99531 (patch) | |
tree | a0af684e2c15a46c27f392dab0c733ba14ac9440 /core/modules/screen-standby | |
parent | [chroot] perror if touching whiteout list failed (diff) | |
download | mltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.tar.gz mltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.tar.xz mltk-0405372844b9bed7da8af5ac1f4d9665d4e99531.zip |
[screen-standby] depend on xorg + copy xset
Diffstat (limited to 'core/modules/screen-standby')
-rw-r--r-- | core/modules/screen-standby/module.build | 10 | ||||
-rw-r--r-- | core/modules/screen-standby/module.conf | 5 |
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=" |