mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
Software Update with apply the settings (Part7)
- Clean osrelease at user defined kernelversion (THX snafed)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a5f5e8220
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-11-03 (Sat, 03 Nov 2012)
Origin message was:
------------------
* Software Update with apply the settings (Part7)
- Clean osrelease at user defined kernelversion (THX snafed)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -185,8 +185,12 @@ bool CExtUpdate::writemtdExt()
|
|||||||
|
|
||||||
// get osrelease
|
// get osrelease
|
||||||
struct utsname uts_info;
|
struct utsname uts_info;
|
||||||
if( uname(&uts_info) == 0 )
|
if( uname(&uts_info) == 0 ) {
|
||||||
osrelease = uts_info.release;
|
osrelease = uts_info.release;
|
||||||
|
size_t pos = osrelease.find_first_of(" ");
|
||||||
|
if (pos != std::string::npos)
|
||||||
|
osrelease = osrelease.substr(0, pos);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return ErrorReset(0, "error no kernel info");
|
return ErrorReset(0, "error no kernel info");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user