Merge pull request #402 from konimex/master

GPU: Used FreeBSD's method for DragonFlyBSD and PacBSD
This commit is contained in:
Dylan Araps 2016-10-31 07:26:51 +11:00 committed by GitHub
commit 65720fc161
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ getgpu() {
"BSD" | "Solaris") "BSD" | "Solaris")
case "$distro" in case "$distro" in
"FreeBSD"*) "FreeBSD"* | "DragonFlyBSD"* | "PacBSD"*)
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//\'}"