mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-14 00:04:59 -05:00
add linux bios serial
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
14c3816fc9
commit
75a92ce485
@ -1830,6 +1830,11 @@ function getSystemInformation(func) {
|
||||
results.hardware.identifiers['bios_serial'] = values[0]['SerialNumber'];
|
||||
} catch (ex) { }
|
||||
}
|
||||
if(results.hardware && results.hardware.linux) {
|
||||
if (require('fs').statSync('/sys/class/dmi/id/product_serial').isFile()){
|
||||
results.hardware.identifiers['bios_serial'] = require('fs').readFileSync('/sys/class/dmi/id/product_serial').toString().trim();
|
||||
}
|
||||
}
|
||||
results.hardware.agentvers = process.versions;
|
||||
replaceSpacesWithUnderscoresRec(results);
|
||||
var hasher = require('SHA384Stream').create();
|
||||
|
Loading…
Reference in New Issue
Block a user