summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorJonathan Bauer2015-11-13 15:31:43 +0100
committerJonathan Bauer2015-11-13 15:31:43 +0100
commit91a720e8d0c0c5a77b49655b88332ea330918184 (patch)
treeecfefc3d77f5124dcbd66ee74a601f21aee1deec /remote/setup_target
parent[rfs-s31] reworked config.tgz unpacking/merging (diff)
parent[vmware] Map and link shared folders, disable dpi scaling (diff)
downloadtm-scripts-91a720e8d0c0c5a77b49655b88332ea330918184.tar.gz
tm-scripts-91a720e8d0c0c5a77b49655b88332ea330918184.tar.xz
tm-scripts-91a720e8d0c0c5a77b49655b88332ea330918184.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 927fde01..42975ef1 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -415,13 +415,16 @@ process_module() {
fi
# Source .build script of module
pdebug "## Reading .build of $MODULE"
- read_build
+ . "${MODE_DIR}/clean_module_funcs.inc" # Clean all hooks, in case the module doesn't define them all
+ read_build # Read all the hooks from the module
# Install module's dependencies
pdebug "## Installing dependencies"
cd "${MODULE_DIR}" || perror "cd to '${MODULE_DIR}' failed."
install_dependencies
# update kernel version variables before running a module, as the last one might have been the kernel...
get_kernel_version
+ # Execute load-hook before anything else
+ module_load
# Fetch source code
if [ ! -e "$SOURCE_FLAG" ]; then
pinfo "## Fetching source"