Unbreak 60-linux.hook's extramodules

This commit is contained in:
Jan Alexander Steffens 2018-08-01 22:05:58 +00:00
parent b2b8b5d690
commit f8843269a5

View File

@ -86,7 +86,8 @@ _package() {
# a place for external modules,
# with version file for building modules and running depmod from hook
local extradir="$pkgdir/usr/lib/modules/extramodules$_kernelname"
local extramodules="extramodules$_kernelname"
local extradir="$pkgdir/usr/lib/modules/$extramodules"
install -Dt "$extradir" -m644 ../version
ln -sr "$extradir" "$modulesdir/extramodules"
@ -102,7 +103,7 @@ _package() {
local subst="
s|%PKGBASE%|$pkgbase|g
s|%KERNVER%|$kernver|g
s|%EXTRAMODULES%|$extradir|g
s|%EXTRAMODULES%|$extramodules|g
"
# hack to allow specifying an initially nonexisting install file