mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
CLuaInstMisc::GetRevision: Use hw_caps for hardware name...
...on non coolstream hardware
Origin commit data
------------------
Commit: f0e98af21b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-14 (Thu, 14 Jan 2016)
This commit is contained in:
@@ -281,6 +281,10 @@ int CLuaInstMisc::GetRevision(lua_State *L)
|
|||||||
std::string hw = "";
|
std::string hw = "";
|
||||||
#if HAVE_COOL_HARDWARE
|
#if HAVE_COOL_HARDWARE
|
||||||
hw = "Coolstream";
|
hw = "Coolstream";
|
||||||
|
#else
|
||||||
|
hw = g_info.hw_caps->boxvendor;
|
||||||
|
hw += "_";
|
||||||
|
hw += g_info.hw_caps->boxname;
|
||||||
#endif
|
#endif
|
||||||
rev = cs_get_revision();
|
rev = cs_get_revision();
|
||||||
lua_pushinteger(L, rev);
|
lua_pushinteger(L, rev);
|
||||||
|
Reference in New Issue
Block a user