From d4f53d947c704e163f2ef61fe3ce1f71f8ca2dee Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 19 Jun 2025 11:17:45 +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 befdb3e..bdb1b6b 100644 --- a/lib/system.js +++ b/lib/system.js @@ -124,7 +124,7 @@ function system(callback) { try { const lines = execSync('sysctl -i kern.hostuuid kern.hostid', util.execOptsLinux).toString().split('\n'); result.uuid = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase(); - if (!result.serial) { + if (!result.serial || result.serial === '-') { result.serial = util.getValue(lines, 'kern.hostid', ':').toLowerCase(); } } catch (e) {