Version 0.7.96

This commit is contained in:
Ylian Saint-Hilaire 2021-03-25 13:58:24 -07:00
parent a53b030345
commit e31e5f156e
2 changed files with 5 additions and 6 deletions

View File

@ -793,10 +793,9 @@ function run(argv) {
// Accepted option for boot device are: pxe, hdd, cd
var bootdevices = ['pxe','hdd','cd'];
if (args.bootdevice) {
console.log()
if (bootdevices.indexOf(args.bootdevice.toLowerCase())>=0) {
settings.bootdevice = args.bootdevice
// set bootindex to 0 by default, unless overriden
// Set bootindex to 0 by default, unless overriden
settings.bootindex = 0
} else {
console.log('Supported boot devices are pxe, hdd, cd'); exit(1); return;
@ -809,7 +808,7 @@ function run(argv) {
performAmtPowerAction();
} else {
console.log('Invalid \"action\" specified.'); exit(1); return;
console.log('Invalid "action" specified.'); exit(1); return;
}
}
@ -2725,9 +2724,9 @@ function performAmtPowerAction() {
wsstack = new wsman(transport, settings.hostname, settings.tls ? 16993 : 16992, settings.username, settings.password, settings.tls);
amtstack = new amt(wsstack);
if (settings.poweraction != 0) {
// check if there is bootdevice and the command is either poweron, powercycle or reset
// Check if there is bootdevice and the command is either poweron, powercycle or reset
if (settings.bootdevice && [2,5,10].indexOf(settings.poweraction)>=0) {
// change boot order
// Change boot order
amtstack.Get('AMT_BootSettingData', powerActionResponse1, 0, 1);
} else {
// Set the power state

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.7.95",
"version": "0.7.96",
"keywords": [
"Remote Device Management",
"Remote Device Monitoring",