updated docs

This commit is contained in:
Sebastian Hildebrandt
2021-02-11 09:38:07 +01:00
parent 9a40cc166f
commit 52ebe5d9a5
3 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ function system(callback) {
result.model = 'Docker Container';
}
try {
const stdout = execSync('dmesg | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen"');
const stdout = execSync('dmesg 2>/dev/null | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen"');
// detect virtual machines
let lines = stdout.toString().split('\n');
if (lines.length > 0) {