summaryrefslogtreecommitdiff
path: root/src/gpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu.c')
-rw-r--r--src/gpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu.c b/src/gpu.c
index ea69841..5873dd5 100644
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -44,6 +44,9 @@ const char *display_gpu() {
#if defined(__OpenBSD__)
return run_gpu_command("dmesg | grep -i graphics | sed 's/^.* \"//' | "
"sed 's/\".*$//'");
+#elif defined(__NetBSD__)
+ return run_gpu_command("dmesg | grep -i graphics | sed 's/^.*: //' | "
+ "sed 's/ (.*$//'");
#elif defined(__FreeBSD__) || defined(__DragonFly__)
return run_gpu_command("pciconf -lv | grep -B 4 -F \"VGA\" | "
"grep -F \"device\" | sed 's/^.* device//' | "