system() added uuid freebsd
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user