Поддержка версии Elbrus-D
This commit is contained in:
parent
2261982479
commit
a4b181a838
@ -48,6 +48,16 @@ protected:
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#if defined( __e2k__ )
|
||||
m_distribution = "debian";
|
||||
m_variant = "elbrus";
|
||||
std::ifstream file( "/etc/mcst_version" );
|
||||
if ( file.is_open() )
|
||||
{
|
||||
std::getline( file, m_version );
|
||||
file.close();
|
||||
}
|
||||
#else
|
||||
std::ifstream file( "/etc/os-release" );
|
||||
if ( file.is_open() )
|
||||
{
|
||||
@ -78,6 +88,7 @@ protected:
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
#endif // if defined( __e2k__ )
|
||||
}
|
||||
|
||||
~CurrentSystem() = default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user