Updated safemode text
Bryan Roe committed
Oct 29, 2019 at 11:05 UTC
8cf6687b189e4a9a8f2d7e1972bae13aad3cef4d
1 file changed
+13
agents/meshcore.js
+13
@@ -1815,6 +1815,19 @@ function createMeshCore(agent) {
1815
break;
1816
case 'STATUS':
1817
var nextboot = require('win-bcd').getKey('safeboot');
1818
+ if (nextboot)
1819
+ {
1820
+ switch(nextboot)
1821
+ {
1822
+ case 'Network':
1823
+ case 'network':
1824
+ nextboot = 'SAFE_MODE_NETWORK';
1825
+ break;
1826
+ default:
1827
+ nextboot = 'SAFE_MODE';
1828
+ break;
1829
+ }
1830
+ }
1831
response = 'Current: ' + require('win-bcd').bootMode + ' , NextBoot: ' + (nextboot ? nextboot : 'NORMAL');
1832
break;
1833
}