mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
imageinfo: add possibility to display a custom text for image version
Origin commit data
------------------
Branch: ni/coolstream
Commit: a1640dd958
Author: J. Krieg <bellum07@googlemail.com>
Date: 2013-07-13 (Sat, 13 Jul 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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