GPU: Now works on FreeBSD
This commit is contained in:
parent
460f798d13
commit
96c62b0774
1 changed files with 3 additions and 2 deletions
5
fetch
5
fetch
|
@ -632,7 +632,7 @@ getcpu () {
|
|||
}
|
||||
|
||||
getgpu () {
|
||||
case "os" in
|
||||
case "$os" in
|
||||
"Linux")
|
||||
|
||||
;;
|
||||
|
@ -645,8 +645,9 @@ getgpu () {
|
|||
case "$distro" in
|
||||
"FreeBSD")
|
||||
gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")
|
||||
gpu=${gpu/device*=/}
|
||||
gpu=${gpu/device*= /}
|
||||
gpu=${gpu//\'/}
|
||||
gpu=${gpu// }
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue