nvidia-driver-565/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-kernel-support-#DRIVER_VERSION_MAJOR#.postinst

19 lines
472 B
Plaintext
Raw Normal View History

2024-10-22 17:05:20 +02:00
#!/bin/sh
set -e
if [ "$1" = "configure" ]
then
if [ -f /etc/nvidia/current/nvidia-modprobe.conf.dpkg-old ] && [ ! -f /etc/nvidia/current/nvidia-modprobe.conf ]
then
# restore modprobe.conf erroneously obsoleted due to bugs in
# debhelper (#994919) and dpkg (#995387), causing #994971
mv -v /etc/nvidia/current/nvidia-modprobe.conf.dpkg-old /etc/nvidia/current/nvidia-modprobe.conf
dpkg-trigger --no-await register-nvidia-alternative
fi
fi
###DEBHELPER###