mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
imageinfo: add possibility to display a custom text for image version
This commit is contained in:
@@ -186,16 +186,20 @@ void CImageInfo::InitInfos()
|
|||||||
const char * builddate = config.getString("builddate", "n/a").c_str();
|
const char * builddate = config.getString("builddate", "n/a").c_str();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
std::string version_string;
|
||||||
|
#ifdef IMAGE_VERSION
|
||||||
|
version_string = IMAGE_VERSION;
|
||||||
|
#else
|
||||||
const char * _version = config.getString("version", "U000000000000000").c_str();
|
const char * _version = config.getString("version", "U000000000000000").c_str();
|
||||||
static CFlashVersionInfo versionInfo(_version);
|
static CFlashVersionInfo versionInfo(_version);
|
||||||
|
|
||||||
std::string version_string;
|
|
||||||
version_string = versionInfo.getReleaseCycle();
|
version_string = versionInfo.getReleaseCycle();
|
||||||
version_string += " ";
|
version_string += " ";
|
||||||
version_string += versionInfo.getType();
|
version_string += versionInfo.getType();
|
||||||
version_string += " (";
|
version_string += " (";
|
||||||
version_string += versionInfo.getDate();
|
version_string += versionInfo.getDate();
|
||||||
version_string += ")";
|
version_string += ")";
|
||||||
|
#endif
|
||||||
|
|
||||||
struct utsname uts_info;
|
struct utsname uts_info;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user