Commit 65720fc1 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #402 from konimex/master

GPU: Used FreeBSD's method for DragonFlyBSD and PacBSD
parents 60318bc1 2f46385c
...@@ -983,7 +983,7 @@ getgpu() { ...@@ -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//\'}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment