osInfo() improved uefi parsing (FreeBSD)
This commit is contained in:
parent
eccebb1e7f
commit
65f66d17bf
@ -262,7 +262,7 @@ function osInfo(callback) {
|
|||||||
}
|
}
|
||||||
if (_freebsd || _openbsd || _netbsd) {
|
if (_freebsd || _openbsd || _netbsd) {
|
||||||
|
|
||||||
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod', function (error, stdout) {
|
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
|
||||||
let lines = stdout.toString().split('\n');
|
let lines = stdout.toString().split('\n');
|
||||||
const distro = util.getValue(lines, 'kern.ostype');
|
const distro = util.getValue(lines, 'kern.ostype');
|
||||||
const logofile = util.getValue(lines, 'kern.ostype');
|
const logofile = util.getValue(lines, 'kern.ostype');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user