diff options
Diffstat (limited to 'source/k/kernel-modules.SlackBuild')
-rwxr-xr-x | source/k/kernel-modules.SlackBuild | 6 |
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 ) |