1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Improved RPE dialog.

This commit is contained in:
Ylian Saint-Hilaire
2021-03-18 00:10:04 -07:00
parent 6e830013e7
commit b3a5126d4b
2 changed files with 13817 additions and 8 deletions

13808
index-new.html Normal file

File diff suppressed because one or more lines are too long

View File

@@ -10316,14 +10316,15 @@
} else if ((action == 106) || (action == 107)) {
var x = ("Confirm execution of Intel&reg; Remote Platform Erase?" + '<br>');
x += ('<br><div style=color:red>' + "<b>WARNING:</b> This will wipe data on the remote system." + '</div>');
var actionTaken = [];
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 1)) { actionTaken.push("Pyrite Revert"); }
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 2)) { actionTaken.push("Secure Erase All SSDs"); }
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 6)) { actionTaken.push("TPM Clear"); }
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 25)) { actionTaken.push("Clear BIOS NVM Variables"); }
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 26)) { actionTaken.push("BIOS Reload of Golden Configuration"); }
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 31)) { actionTaken.push("CSME Unconfigure"); }
if (actionTaken.length > 0) { x += ('<br>' + format("The following actions will be taken: {0}.", actionTaken.join(', '))); }
var actionTaken = [], platfromEraseSupport = amtPowerBootCapabilities['PlatformErase'];
if (platfromEraseSupport & (1 << 1)) { actionTaken.push("Pyrite Revert"); }
if (platfromEraseSupport & (1 << 2)) { actionTaken.push("Secure Erase All SSDs"); }
if (platfromEraseSupport & (1 << 6)) { actionTaken.push("TPM Clear"); }
if (platfromEraseSupport & (1 << 25)) { actionTaken.push("Clear BIOS NVM Variables"); }
if (platfromEraseSupport & (1 << 26)) { actionTaken.push("BIOS Reload of Golden Configuration"); }
if (platfromEraseSupport & (1 << 31)) { actionTaken.push("CSME Unconfigure"); }
if (actionTaken.length == 1) { x += ('<br>' + format("The following action will be taken:" + '<ul><li>{0}</li></ul>', actionTaken.join('</li><li>'))); }
else if (actionTaken.length > 1) { x += ('<br>' + format("The following actions will be taken:" + '<ul><li>{0}</li></ul>', actionTaken.join('</li><li>'))); }
setDialogMode(11, "Power Actions", 3, powerActionDlg, x);
// ###BEGIN###{PowerControl-OneClick}
} else if ((action == 999) && (amtversion >= 15)) {