system() added uuid freebsd
This commit is contained in:
parent
c1d26c9a00
commit
f6abe4cada
@ -122,7 +122,7 @@ function system(callback) {
|
|||||||
}
|
}
|
||||||
if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
|
if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
|
||||||
try {
|
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();
|
result.uuid = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
util.noop();
|
util.noop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user