Replaced /proc/driver/nvidia/version with /sys/module/nvidia/version for open and proprietary NVIDIA version driver
This commit is contained in:
3
neofetch
3
neofetch
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user