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
1 changed files with 3 additions and 2 deletions

View File

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