From 34dd561cf893cc54854978c016254398bf84b83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Tue, 18 Jun 2024 00:44:43 +0900 Subject: =?UTF-8?q?=E3=81=9D=E3=82=8C=E3=82=82=E3=81=82=E3=82=8B=E3=81=AE?= =?UTF-8?q?=E3=81=8B=E3=83=BB=E3=83=BB=E3=83=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/host.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/host.c') diff --git a/src/host.c b/src/host.c index 12df5d3..d2328a7 100644 --- a/src/host.c +++ b/src/host.c @@ -29,7 +29,9 @@ void run_command(const char *command) { void display_host_model() { #if defined(__OpenBSD__) || defined(__FreeBSD__) || \ defined(__DragonFly__) - run_command("sysctl -n hw.vendor hw.product"); + run_command("sysctl -n hw.vendor && echo \" \" && " + "sysctl -n hw.version && echo \" \" &&" + "sysctl -n hw.product"); #elif defined(__NetBSD__) run_command("sysctl -n machdep.dmi.system-vendor && " "echo \" \" && sysctl -n machdep.dmi.system-version && " -- cgit v1.2.3