Replaced /proc/driver/nvidia/version with /sys/module/nvidia/version for open and proprietary NVIDIA version driver

This commit is contained in:
TheRealOne78 2022-06-11 12:12:02 +03:00
parent ccd5d9f526
commit c9cf67d363

View file

@ -3940,8 +3940,7 @@ get_gpu_driver() {
gpu_driver="${gpu_driver%, }"
if [[ "$gpu_driver" == *"nvidia"* ]]; then
gpu_driver="$(< /proc/driver/nvidia/version)"
gpu_driver="${gpu_driver/*Module }"
gpu_driver="$(< /sys/module/nvidia/version)"
gpu_driver="NVIDIA ${gpu_driver/ *}"
fi
;;