diff --git a/src/myx/core/current_system.hpp b/src/myx/core/current_system.hpp index 4ba452a..d814bd5 100644 --- a/src/myx/core/current_system.hpp +++ b/src/myx/core/current_system.hpp @@ -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;