mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +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
|
||||
|
Reference in New Issue
Block a user