Replaced /proc/driver/nvidia/version with /sys/module/nvidia/version for open and proprietary NVIDIA version driver
This commit is contained in:
parent
ccd5d9f526
commit
c9cf67d363
1 changed files with 1 additions and 2 deletions
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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue