GPU: Used FreeBSD's method for DragonFlyBSD and PacBSD

This commit is contained in:
Muhammad Herdiansyah 2016-10-30 23:40:48 +07:00
parent 60318bc194
commit 2f46385cf0

View file

@ -983,7 +983,7 @@ getgpu() {
"BSD" | "Solaris")
case "$distro" in
"FreeBSD"*)
"FreeBSD"* | "DragonFlyBSD"* | "PacBSD"*)
gpu="$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")"
gpu="${gpu/*device*= }"
gpu="${gpu//\'}"