mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-30 03:16:12 +03:00
Updated safemode text
This commit is contained in:
parent
a98340cdc7
commit
53aacd87c8
@ -1815,6 +1815,19 @@ function createMeshCore(agent) {
|
|||||||
break;
|
break;
|
||||||
case 'STATUS':
|
case 'STATUS':
|
||||||
var nextboot = require('win-bcd').getKey('safeboot');
|
var nextboot = require('win-bcd').getKey('safeboot');
|
||||||
|
if (nextboot)
|
||||||
|
{
|
||||||
|
switch(nextboot)
|
||||||
|
{
|
||||||
|
case 'Network':
|
||||||
|
case 'network':
|
||||||
|
nextboot = 'SAFE_MODE_NETWORK';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
nextboot = 'SAFE_MODE';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
response = 'Current: ' + require('win-bcd').bootMode + ' , NextBoot: ' + (nextboot ? nextboot : 'NORMAL');
|
response = 'Current: ' + require('win-bcd').bootMode + ' , NextBoot: ' + (nextboot ? nextboot : 'NORMAL');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user