nvidia: restore scripts deleted by mistake

This commit is contained in:
Stefano Ragni 2019-12-12 21:35:46 +01:00 committed by Juan RP
parent 1f5f431529
commit d457486c16
3 changed files with 23 additions and 1 deletions

View 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

View 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

View file

@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux"
pkgname=nvidia
version=440.36
revision=1
revision=2
maintainer="Juan RP <xtraeme@gmail.com>"
license="custom:NVIDIA Proprietary"
homepage="https://www.nvidia.com"