nvidia: use modules-load.d(5) to load DKMS module.
This commit is contained in:
parent
dcd208eee4
commit
a5ba5c0f47
2 changed files with 6 additions and 1 deletions
|
@ -13,6 +13,11 @@ do_install() {
|
|||
vmkdir usr/src/nvidia-${version}
|
||||
vcopy "${_pkg}/kernel/*" usr/src/nvidia-${version}
|
||||
|
||||
# systemd modules-load.d(5) file.
|
||||
vmkdir usr/lib/modules-load.d
|
||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
|
||||
# Blacklist nouveau.
|
||||
vmkdir usr/lib/modprobe.d
|
||||
echo "blacklist nouveau" > ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'nvidia'
|
||||
pkgname=nvidia
|
||||
version=304.48
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="NVIDIA drivers for linux"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="Propietary NVIDIA license"
|
||||
|
|
Loading…
Reference in a new issue