mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
imageinfo: outsource kernel info init into own member
This commit is contained in:
@@ -356,9 +356,7 @@ void CImageInfo::InitInfoData()
|
||||
v_info.push_back(pretty_name);
|
||||
|
||||
//kernel
|
||||
struct utsname uts_info;
|
||||
if (uname(&uts_info) == 0)
|
||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_KERNEL), uts_info.release});
|
||||
initKernelInfo();
|
||||
|
||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_DATE), builddate});
|
||||
|
||||
@@ -399,6 +397,14 @@ void CImageInfo::initHalInfo()
|
||||
#endif
|
||||
}
|
||||
|
||||
void CImageInfo::initKernelInfo()
|
||||
{
|
||||
struct utsname uts_info;
|
||||
if (uname(&uts_info) == 0)
|
||||
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_KERNEL), uts_info.release});
|
||||
}
|
||||
|
||||
|
||||
void CImageInfo::initSupportInfo()
|
||||
{
|
||||
//www
|
||||
|
@@ -58,6 +58,7 @@ class CImageInfo : public CMenuTarget
|
||||
void InitMinitv();
|
||||
void InitInfos();
|
||||
void InitBuildInfos();
|
||||
void initKernelInfo();
|
||||
void initHalInfo();
|
||||
void InitInfoText(const std::string& text);
|
||||
void initSupportInfo();
|
||||
|
Reference in New Issue
Block a user