mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-04 01:23:21 +00:00
Updated kvm test
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user