1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-04 01:23:21 +00:00

Updated kvm test

This commit is contained in:
Bryan Roe
2021-02-09 19:42:18 -08:00
parent 3c47a8b920
commit 9d17164f31

View File

@@ -772,6 +772,21 @@ function testKVM()
var ret = new promise(function (res, rej) { this._res = res; this._rej = rej; });
ret.tester = this;
if (!localmode)
{
if(process.platform == 'linux' || process.platform == 'freebsd')
{
var p = this.agentQueryValue("require('monitor-info').kvm_x11_support");
var val = promise.wait(p);
if (val == false)
{
console.log(' => KVM Test............................[X11 NOT DETECTED]');
ret._res();
return (ret);
}
}
}
if (require('MeshAgent').hasKVM != 0)
{
if (process.platform == 'linux' || process.platform == 'freebsd')