From a30c3fda77d8aadfcc388cba4734efedfc79144a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Thu, 20 Jun 2024 05:11:10 +0900 Subject: =?UTF-8?q?dmesg=E3=81=8C=E8=A4=87=E6=95=B0=E5=9B=9E=E5=90=8C?= =?UTF-8?q?=E3=81=98GPU=E3=82=92=E5=87=BA=E5=8A=9B=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E6=80=A7=E3=81=8C=E3=81=82=E3=82=8B=E3=82=89=E3=81=97=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gpu.c | 4 ++-- 1 file 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//' | " -- cgit v1.2.3