summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorSimon Rettberg2013-04-24 20:11:51 +0200
committerSimon Rettberg2013-04-24 20:11:51 +0200
commit3ea8042163cdd191db1237ede4cbb06f497c9fdc (patch)
tree71293396ef12f3fd2ddd4cf57335f710498c4fda /helper
parentseveral suse fixes (login etc) (diff)
parentfix rsyslogd for ubuntu (hopefully not broken on suse :/) (diff)
downloadtm-scripts-3ea8042163cdd191db1237ede4cbb06f497c9fdc.tar.gz
tm-scripts-3ea8042163cdd191db1237ede4cbb06f497c9fdc.tar.xz
tm-scripts-3ea8042163cdd191db1237ede4cbb06f497c9fdc.zip
Super duper merge
Diffstat (limited to 'helper')
-rw-r--r--helper/fileutil.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc
index ba1be103..f4cfe298 100644
--- a/helper/fileutil.inc
+++ b/helper/fileutil.inc
@@ -79,6 +79,10 @@ copy_static_data() {
cp -r "${MODULE_DIR}/data/"* ${TARGET_BUILD_DIR} || perror "Could not copy static data of ${MODULE}"
}
+copy_system_files() {
+ [ ! -z "$REQUIRED_SYSTEM_FILES" ] && tarcopy "$REQUIRED_SYSTEM_FILES" "$TARGET_BUILD_DIR"
+}
+
calc_size() {
local CURRENT_BUILD_SIZE=$(du -bc "${TARGET_BUILD_DIR}" | awk 'END {print $1}')