mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Version 0.7.96
This commit is contained in:
parent
a53b030345
commit
e31e5f156e
@ -793,10 +793,9 @@ function run(argv) {
|
|||||||
// Accepted option for boot device are: pxe, hdd, cd
|
// Accepted option for boot device are: pxe, hdd, cd
|
||||||
var bootdevices = ['pxe','hdd','cd'];
|
var bootdevices = ['pxe','hdd','cd'];
|
||||||
if (args.bootdevice) {
|
if (args.bootdevice) {
|
||||||
console.log()
|
|
||||||
if (bootdevices.indexOf(args.bootdevice.toLowerCase())>=0) {
|
if (bootdevices.indexOf(args.bootdevice.toLowerCase())>=0) {
|
||||||
settings.bootdevice = args.bootdevice
|
settings.bootdevice = args.bootdevice
|
||||||
// set bootindex to 0 by default, unless overriden
|
// Set bootindex to 0 by default, unless overriden
|
||||||
settings.bootindex = 0
|
settings.bootindex = 0
|
||||||
} else {
|
} else {
|
||||||
console.log('Supported boot devices are pxe, hdd, cd'); exit(1); return;
|
console.log('Supported boot devices are pxe, hdd, cd'); exit(1); return;
|
||||||
@ -809,7 +808,7 @@ function run(argv) {
|
|||||||
|
|
||||||
performAmtPowerAction();
|
performAmtPowerAction();
|
||||||
} else {
|
} 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);
|
wsstack = new wsman(transport, settings.hostname, settings.tls ? 16993 : 16992, settings.username, settings.password, settings.tls);
|
||||||
amtstack = new amt(wsstack);
|
amtstack = new amt(wsstack);
|
||||||
if (settings.poweraction != 0) {
|
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) {
|
if (settings.bootdevice && [2,5,10].indexOf(settings.poweraction)>=0) {
|
||||||
// change boot order
|
// Change boot order
|
||||||
amtstack.Get('AMT_BootSettingData', powerActionResponse1, 0, 1);
|
amtstack.Get('AMT_BootSettingData', powerActionResponse1, 0, 1);
|
||||||
} else {
|
} else {
|
||||||
// Set the power state
|
// Set the power state
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.7.95",
|
"version": "0.7.96",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Device Management",
|
"Remote Device Management",
|
||||||
"Remote Device Monitoring",
|
"Remote Device Monitoring",
|
||||||
|
Loading…
Reference in New Issue
Block a user