Version 0.7.96
Ylian Saint-Hilaire committed
Mar 25, 2021 at 13:58 UTC
e31e5f156ef7ac02892784bc3395f814b380bf6a
2 files changed
+5
-6
agents/meshcmd.js
+4
-5
@@ -793,10 +793,9 @@ function run(argv) {
793
// Accepted option for boot device are: pxe, hdd, cd
794
var bootdevices = ['pxe','hdd','cd'];
795
if (args.bootdevice) {
796
- console.log()
796
if (bootdevices.indexOf(args.bootdevice.toLowerCase())>=0) {
797
settings.bootdevice = args.bootdevice
799
- // set bootindex to 0 by default, unless overriden
798
+ // Set bootindex to 0 by default, unless overriden
799
settings.bootindex = 0
800
} else {
801
console.log('Supported boot devices are pxe, hdd, cd'); exit(1); return;
@@ -809,7 +808,7 @@ function run(argv) {
808
809
performAmtPowerAction();
810
} else {
812
- console.log('Invalid \"action\" specified.'); exit(1); return;
811
+ console.log('Invalid "action" specified.'); exit(1); return;
812
}
813
}
814
@@ -2725,9 +2724,9 @@ function performAmtPowerAction() {
2724
wsstack = new wsman(transport, settings.hostname, settings.tls ? 16993 : 16992, settings.username, settings.password, settings.tls);
2725
amtstack = new amt(wsstack);
2726
if (settings.poweraction != 0) {
2728
- // check if there is bootdevice and the command is either poweron, powercycle or reset
2727
+ // Check if there is bootdevice and the command is either poweron, powercycle or reset
2728
if (settings.bootdevice && [2,5,10].indexOf(settings.poweraction)>=0) {
2730
- // change boot order
2729
+ // Change boot order
2730
amtstack.Get('AMT_BootSettingData', powerActionResponse1, 0, 1);
2731
} else {
2732
// Set the power state
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.7.95",
3
+ "version": "0.7.96",
4
"keywords": [
5
"Remote Device Management",
6
"Remote Device Monitoring",