summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2014-01-03 19:48:59 +0100
committerSimon Rettberg2014-01-03 19:48:59 +0100
commit50f58bc1f38e771c332c7e0e03b714fb79de22dd (patch)
tree6ee3e38ce1d53809fbaee67fcd6f182f903670b2 /remote/setup_target
parent<kernel config> Enable xz support for initrd, so we could switch in the futur... (diff)
downloadtm-scripts-50f58bc1f38e771c332c7e0e03b714fb79de22dd.tar.gz
tm-scripts-50f58bc1f38e771c332c7e0e03b714fb79de22dd.tar.xz
tm-scripts-50f58bc1f38e771c332c7e0e03b714fb79de22dd.zip
Fix module cleanup
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 9b9e0f44..1fd059fc 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -493,8 +493,9 @@ clean_modules() {
clean_module() {
[ -z "$1" ] && perror "No module given on clean_module()"
[ ! -d "$1" ] && perror "Module dir $1 doesn't exist!"
+ local MODULE=$(basename "$1")
# if kernel is to be cleaned, do it separately and return
- [ "x$(basename $1)" == "xkernel" ] && clean_kernel_module && return
+ [ "x$MODULE" == "xkernel" ] && clean_kernel_module && return
pinfo "Cleaning '$1'..."
local MODULE_DIR="$1"
@@ -502,6 +503,7 @@ clean_module() {
rm -rf -- "${MODULE_DIR}/src" || perror "Could not delete src path"
rm -f -- "${MODULE_DIR}/list_dpkg_output" || perror "Could not delete list_dpkg_output"
rm -f -- "${MODULE_DIR}/list_binaries_and_files" || perror "Could not delete list_binaries_and_files"
+ rm -f -- "${TARGET_BUILD_DIR}/opt/openslx/.mltk/${MODULE}.md5"
# These are not in use anymore, but leave the cleanup here for upgraders
rm -f -- "${MODULE_DIR}/.built"
rm -f -- "${MODULE_DIR}/.fetched_source"