mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Code cleanup.
This commit is contained in:
parent
72d9698dce
commit
cf54f6f34b
15 changed files with 802 additions and 802 deletions
|
@ -769,11 +769,11 @@ function run(argv) {
|
|||
7 = Hibernate
|
||||
8 = Power Off - Soft
|
||||
9 = Power Cycle (Off Hard)
|
||||
10 = Master Bus Reset
|
||||
10 = Main Bus Reset
|
||||
11 = Diagnostic Interrupt (NMI)
|
||||
12 = Power Off - Soft Graceful
|
||||
13 = Power Off - Hard Graceful
|
||||
14 = Master Bus Reset Graceful
|
||||
14 = Main Bus Reset Graceful
|
||||
15 = Power Cycle (Off - Soft Graceful)
|
||||
16 = Power Cycle (Off - Hard Graceful)
|
||||
*/
|
||||
|
@ -2869,7 +2869,7 @@ function performAmtPowerActionEx(stack, name, response, status) {
|
|||
}
|
||||
}
|
||||
|
||||
var DMTFPowerStates = ['', '', "Power on", "Light sleep", "Deep sleep", "Power cycle (Soft off)", "Off - Hard", "Hibernate (Off soft)", "Soft off", "Power cycle (Off-hard)", "Master bus reset", "Diagnostic interrupt (NMI)", "Not applicable", "Off - Soft graceful", "Off - Hard graceful", "Master bus reset graceful", "Power cycle (Off - Soft graceful)", "Power cycle (Off - Hard graceful)", "Diagnostic interrupt (INIT)"];
|
||||
var DMTFPowerStates = ['', '', "Power on", "Light sleep", "Deep sleep", "Power cycle (Soft off)", "Off - Hard", "Hibernate (Off soft)", "Soft off", "Power cycle (Off-hard)", "Main bus reset", "Diagnostic interrupt (NMI)", "Not applicable", "Off - Soft graceful", "Off - Hard graceful", "Main bus reset graceful", "Power cycle (Off - Soft graceful)", "Power cycle (Off - Hard graceful)", "Diagnostic interrupt (INIT)"];
|
||||
function performAmtPowerActionEx2(stack, name, response, status) {
|
||||
if (status == 200) {
|
||||
var powerNumber = parseInt(response.Body.PowerState);
|
||||
|
|
|
@ -613,7 +613,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||
1611: 'TLS Trusted Root Certificate Removed',
|
||||
1612: 'TLS Preshared Key Set',
|
||||
1613: 'Kerberos Settings Modified',
|
||||
1614: 'Kerberos Master Key Modified',
|
||||
1614: 'Kerberos Main Key Modified',
|
||||
1615: 'Flash Wear out Counters Reset',
|
||||
1616: 'Power Package Modified',
|
||||
1617: 'Set Realm Authentication Mode',
|
||||
|
|
|
@ -613,7 +613,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||
1611: 'TLS Trusted Root Certificate Removed',
|
||||
1612: 'TLS Preshared Key Set',
|
||||
1613: 'Kerberos Settings Modified',
|
||||
1614: 'Kerberos Master Key Modified',
|
||||
1614: 'Kerberos Main Key Modified',
|
||||
1615: 'Flash Wear out Counters Reset',
|
||||
1616: 'Power Package Modified',
|
||||
1617: 'Set Realm Authentication Mode',
|
||||
|
|
|
@ -50,12 +50,12 @@ function WiFiScanner()
|
|||
{
|
||||
if (process.platform == 'win32')
|
||||
{
|
||||
this.master = require('ScriptContainer').Create(15, ContainerPermissions.DEFAULT);
|
||||
this.master.parent = this;
|
||||
this.master.on('data', function (j) { this.parent.emit('accessPoint', new AccessPoint(j.ssid, j.bssid, j.lq)); });
|
||||
this.main = require('ScriptContainer').Create(15, ContainerPermissions.DEFAULT);
|
||||
this.main.parent = this;
|
||||
this.main.on('data', function (j) { this.parent.emit('accessPoint', new AccessPoint(j.ssid, j.bssid, j.lq)); });
|
||||
|
||||
this.master.addModule('wifi-scanner-windows', getJSModule('wifi-scanner-windows'));
|
||||
this.master.ExecuteString(WindowsChildScript);
|
||||
this.main.addModule('wifi-scanner-windows', getJSModule('wifi-scanner-windows'));
|
||||
this.main.ExecuteString(WindowsChildScript);
|
||||
}
|
||||
else if (process.platform == 'linux')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue