1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Removed smbios.js module from meshcore for non-AI platforms.

This commit is contained in:
Ylian Saint-Hilaire 2018-12-30 13:32:40 -08:00
parent 1551f74637
commit 1be520624c
42 changed files with 25 additions and 50 deletions

View file

@ -912,8 +912,9 @@ function CreateMeshCentralServer(config, args) {
var moduleData = 'try { addModule("' + moduleName + '", "' + obj.escapeCodeString(obj.fs.readFileSync(obj.path.join(moduleDirPath, modulesDir[i])).toString('binary')) + '"); addedModules.push("' + moduleName + '"); } catch (e) { }\r\n';
// Merge this module
if (moduleName.startsWith('amt-')) {
// Add to Intel AMT cores only
// NOTE: "smbios" module makes some non-AI Linux segfault, only include for IA platforms.
if (moduleName.startsWith('amt-') || (moduleName == 'smbios')) {
// Add to IA / Intel AMT cores only
modulesAdd['windows-amt'] += moduleData;
modulesAdd['linux-amt'] += moduleData;
} else if (moduleName.startsWith('win-')) {