[+] AWS and centos detection
This commit is contained in:
parent
2c9d19591b
commit
de739b8e1f
@ -171,10 +171,17 @@ namespace Aurora::SWInfo
|
||||
|
||||
osInfo.bIsEnterprise = false;
|
||||
|
||||
// redhat
|
||||
if (AuFS::ReadString("/etc/system-release-cpe", a))
|
||||
{
|
||||
// redhat
|
||||
osInfo.bIsEnterprise |= a.find("nterprise") != AuString::npos; // cpe:?????:enterprise_linux:??????
|
||||
// aws
|
||||
osInfo.bIsServer |= a.find("ami") != AuString::npos; // al202?-ami-202?.?.????.0-kernel-?.?-x86_64
|
||||
}
|
||||
else
|
||||
{
|
||||
// centos and similar
|
||||
osInfo.bIsServer |= AuFS::FileExists("/etc/redhat-release");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user