system() added uuid freebsd
This commit is contained in:
parent
f6abe4cada
commit
e958beac95
@ -122,8 +122,8 @@ function system(callback) {
|
|||||||
}
|
}
|
||||||
if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
|
if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
|
||||||
try {
|
try {
|
||||||
const lines = execSync('sysctl -i kern.hostid', util.execOptsLinux).toString().split('\n');
|
const lines = execSync('sysctl -i kern.hostuuid', util.execOptsLinux).toString().split('\n');
|
||||||
result.uuid = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
|
result.uuid = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
util.noop();
|
util.noop();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user