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