From f6abe4cada89eb280fe5c6f44ddcff4ce6acace8 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 19 Jun 2025 11:00:38 +0200 Subject: [PATCH] system() added uuid freebsd --- lib/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.js b/lib/system.js index ea933f1..77382dd 100644 --- a/lib/system.js +++ b/lib/system.js @@ -122,7 +122,7 @@ function system(callback) { } if (!result.uuid && (_freebsd || _openbsd || _netbsd)) { try { - const disksById = execSync('sysctl -i kern.hostid kern.hostuuid', util.execOptsLinux).toString(); + const lines = execSync('sysctl -i kern.hostid', util.execOptsLinux).toString().split('\n'); result.uuid = util.getValue(lines, 'kern.hostid', ':').toLowerCase(); } catch (e) { util.noop();