1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2026-01-09 03:33:14 +00:00
This commit is contained in:
Ylian Saint-Hilaire
2020-08-10 13:47:38 -07:00
2 changed files with 1599 additions and 1185 deletions

View File

@@ -10500,6 +10500,10 @@
// Set the boot order to null, this is needed for some AMT versions that don't clear this automatically.
amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) {
if (status != 200) { messagebox("Power Action", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; }
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1);
}, 0, 1);
}
@@ -10548,6 +10552,11 @@
function powerActionResponse3(stack, name, response, status) {
console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')');
if (errcheck(status, stack)) return;
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
//console.log("Performing Power State Change...");
statusbox("Power Action", "Performing power action...");
var action = d5actionSelect.value;