Fix legacy Nvidia drivers (390 and older)

This commit is contained in:
Kron4ek 2024-09-10 01:02:55 +03:00 committed by GitHub
parent 941e8e9190
commit 7844d08792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -416,6 +416,8 @@ nvidia_driver_handler () {
if [ -s /usr/lib/libGLX_nvidia.so."${nvidia_driver_version}" ] || \
[ -s /usr/lib/libGL.so."${nvidia_driver_version}" ]; then
cp /usr/lib/tls/libnvidia-tls.so.* /usr/lib &>/dev/null
cp /usr/lib32/tls/libnvidia-tls.so.* /usr/lib32 &>/dev/null
echo "${nvidia_driver_version}" > "${nvidia_drivers_dir}"/current-nvidia-version
echo "The driver installed successfully"
else