mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
nvidia: restore scripts deleted by mistake
This commit is contained in:
parent
1f5f431529
commit
d457486c16
3 changed files with 23 additions and 1 deletions
13
srcpkgs/nvidia/nvidia-dkms.INSTALL
Normal file
13
srcpkgs/nvidia/nvidia-dkms.INSTALL
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
case "${ACTION}" in
|
||||||
|
post)
|
||||||
|
if [ "${ARCH}" = "x86_64" ]; then
|
||||||
|
# Regenerate initramfs.
|
||||||
|
echo "Regenerating initramfs, please wait..."
|
||||||
|
dracut -f -q --regenerate-all
|
||||||
|
else
|
||||||
|
echo "Nvidia has dropped support for 32-bit kernels.\n"
|
||||||
|
echo "Please consider installing the nvidia390 package as an alternative.\n"
|
||||||
|
echo "This package is now only useful if you're using a x86_64 kernel.\n"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
9
srcpkgs/nvidia/nvidia-dkms.REMOVE
Normal file
9
srcpkgs/nvidia/nvidia-dkms.REMOVE
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Regenerate initramfs.
|
||||||
|
case ${ACTION} in
|
||||||
|
purge)
|
||||||
|
if [ "${ARCH}" = "x86_64" ]; then
|
||||||
|
echo "Regenerating initramfs, please wait..."
|
||||||
|
dracut -f -q --regenerate-all
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux"
|
||||||
|
|
||||||
pkgname=nvidia
|
pkgname=nvidia
|
||||||
version=440.36
|
version=440.36
|
||||||
revision=1
|
revision=2
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="custom:NVIDIA Proprietary"
|
license="custom:NVIDIA Proprietary"
|
||||||
homepage="https://www.nvidia.com"
|
homepage="https://www.nvidia.com"
|
||||||
|
|
Loading…
Add table
Reference in a new issue