mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
add linux bios serial
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
14c3816fc9
commit
75a92ce485
1 changed files with 5 additions and 0 deletions
|
@ -1830,6 +1830,11 @@ function getSystemInformation(func) {
|
||||||
results.hardware.identifiers['bios_serial'] = values[0]['SerialNumber'];
|
results.hardware.identifiers['bios_serial'] = values[0]['SerialNumber'];
|
||||||
} catch (ex) { }
|
} 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;
|
results.hardware.agentvers = process.versions;
|
||||||
replaceSpacesWithUnderscoresRec(results);
|
replaceSpacesWithUnderscoresRec(results);
|
||||||
var hasher = require('SHA384Stream').create();
|
var hasher = require('SHA384Stream').create();
|
||||||
|
|
Loading…
Reference in a new issue