From 711c51f8d4f9d5f312de3903be053d468c121ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 22 Jun 2024 03:32:53 +0900 Subject: =?UTF-8?q?SunOS:=20=E3=83=9B=E3=82=B9=E3=83=88=E5=90=8D=E3=81=AE?= =?UTF-8?q?=E6=83=85=E5=A0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host.c b/src/host.c index d88b03e..77020ae 100644 --- a/src/host.c +++ b/src/host.c @@ -94,8 +94,8 @@ void display_host_model() { printf("%s", cmd); free((void *)cmd); #elif defined(__sun) - const char *cmd = run_host_command("prtconf -b | " - "awk -F':' '/banner-name/ {printf $2}'"); + const char *cmd = run_host_command("smbios | grep \"Product\" | " + "sed 's/ Product: //' | head -1"); if (!cmd) return; printf("%s", cmd); free((void *)cmd); -- cgit v1.2.3