Added gpu support base
This commit is contained in:
parent
b7bb03b6ab
commit
460f798d13
1 changed files with 27 additions and 0 deletions
27
fetch
27
fetch
|
@ -631,6 +631,33 @@ getcpu () {
|
|||
cpu=${cpu// Six-Core/}
|
||||
}
|
||||
|
||||
getgpu () {
|
||||
case "os" in
|
||||
"Linux")
|
||||
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
|
||||
;;
|
||||
|
||||
"BSD")
|
||||
case "$distro" in
|
||||
"FreeBSD")
|
||||
gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")
|
||||
gpu=${gpu/device*=/}
|
||||
gpu=${gpu//\'/}
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
|
||||
"Windows")
|
||||
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Get memory
|
||||
getmemory () {
|
||||
case "$os" in
|
||||
|
|
Loading…
Reference in a new issue