summaryrefslogtreecommitdiffstats
path: root/source/k/kernel-modules.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-10-22 18:40:34 +0000
committer Eric Hameleers <alien@slackware.com>2022-10-23 07:00:16 +0200
commitaf2cb09097c3e167bbd06fbe18d0df9489f36f82 (patch)
tree1cf76b950db1473933a7925d047e5211fb4ff260 /source/k/kernel-modules.SlackBuild
parent9d96d90a7dd5041007b869e40b14db1fa3b52e01 (diff)
downloadcurrent-af2cb09097c3e167bbd06fbe18d0df9489f36f82.tar.gz
current-af2cb09097c3e167bbd06fbe18d0df9489f36f82.tar.xz
Sat Oct 22 18:40:34 UTC 202220221022184034
d/parallel-20221022-noarch-1.txz: Upgraded. l/gc-8.2.2-x86_64-1.txz: Upgraded. x/libXrender-0.9.11-x86_64-1.txz: Upgraded. x/xfsinfo-1.0.7-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/k/kernel-modules.SlackBuild')
-rwxr-xr-xsource/k/kernel-modules.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/k/kernel-modules.SlackBuild b/source/k/kernel-modules.SlackBuild
index ff083c16a..d7df6d3c4 100755
--- a/source/k/kernel-modules.SlackBuild
+++ b/source/k/kernel-modules.SlackBuild
@@ -120,13 +120,13 @@ fi
echo "Stripping debug info from kernel modules..."
find $PKG -name "*.ko" -exec strip --strip-debug "{}" \;
fi
- # Fix build and source symlinks if they are pointing into /tmp:
+ # Fix build and source symlinks if they are pointing into $TMP:
( cd $PKG/lib/modules/${VERSION}${LOCALVERSION}
for symlink in build source ; do
target=$(readlink $symlink)
- if echo $target | grep -q "^/tmp/package-kernel-source/" ; then
+ if echo $target | grep -q "^$TMP/package-kernel-source/" ; then
rm -f $symlink
- ln -sf $(echo $target | sed "s|/tmp/package-kernel-source/|/|g") $symlink
+ ln -sf $(echo $target | sed "s|$TMP/package-kernel-source/|/|g") $symlink
fi
done
)