summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorChristian Rößler2013-06-25 14:21:58 +0200
committerChristian Rößler2013-06-25 14:21:58 +0200
commita6b4ce21d53013af61d341bf91ebad032ecc33bb (patch)
tree6c3362cc5166e38b7620e53c9e6a3f64708efaba /helper
parentBetter detection of pango-querymodules/pango-querymodules-64 in case of 64bit OS (diff)
parent[pam] Remove required files which cannot be found (diff)
downloadtm-scripts-a6b4ce21d53013af61d341bf91ebad032ecc33bb.tar.gz
tm-scripts-a6b4ce21d53013af61d341bf91ebad032ecc33bb.tar.xz
tm-scripts-a6b4ce21d53013af61d341bf91ebad032ecc33bb.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'helper')
-rw-r--r--helper/kernel.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/helper/kernel.inc b/helper/kernel.inc
index a5989b15..af2af38b 100644
--- a/helper/kernel.inc
+++ b/helper/kernel.inc
@@ -105,6 +105,7 @@ copy_kernel_modules() {
copy_firmware() {
[ -z "${REQUIRED_FIRMWARE}" ] && perror "REQUIRED_FIRMWARE is empty. Check your config file."
+ local HORST=$(pwd)
check_kernel_build_dir
#
# process firmware list
@@ -153,13 +154,16 @@ copy_firmware() {
# which have to be copied to /lib/firmware/${KERNEL_NEW_VERSION}
if [ -d "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}" ]; then
mkdir -p "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_NEW_VERSION}/"
- mv "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}/"* "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_NEW_VERSION}/"
- rmdir "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}/" || perror "something went very wrong..."
+ #mv -f "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}/"* "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_NEW_VERSION}/"
+ cd "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}" || perror "old kernel but no old kernel"
+ tarcopy "$(ls)" "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_NEW_VERSION}/"
+ cd -
+ rm -r "${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION}" || perror "something went very wrong..."
else
pdebug "No ${TARGET_BUILD_DIR}/lib/firmware/${KERNEL_VERSION} directory, skipping the merge."
fi
- cd - >/dev/null
+ cd "$HORST"
}
copy_kernel() {