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