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:
parent
1551f74637
commit
1be520624c
42 changed files with 25 additions and 50 deletions
|
@ -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-')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue