mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
GPU: Now works on FreeBSD
This commit is contained in:
5
fetch
5
fetch
@@ -632,7 +632,7 @@ getcpu () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getgpu () {
|
getgpu () {
|
||||||
case "os" in
|
case "$os" in
|
||||||
"Linux")
|
"Linux")
|
||||||
|
|
||||||
;;
|
;;
|
||||||
@@ -645,8 +645,9 @@ getgpu () {
|
|||||||
case "$distro" in
|
case "$distro" in
|
||||||
"FreeBSD")
|
"FreeBSD")
|
||||||
gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")
|
gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")
|
||||||
gpu=${gpu/device*=/}
|
gpu=${gpu/device*= /}
|
||||||
gpu=${gpu//\'/}
|
gpu=${gpu//\'/}
|
||||||
|
gpu=${gpu// }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user