Added gpu support base

This commit is contained in:
Dylan 2016-01-19 11:55:45 +11:00
parent b7bb03b6ab
commit 460f798d13

27
fetch
View file

@ -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