CLuaInstMisc::GetRevision: Use hw_caps for hardware name...

...on non coolstream hardware


Origin commit data
------------------
Branch: ni/coolstream
Commit: f0e98af21b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-14 (Thu, 14 Jan 2016)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-01-14 12:56:27 +01:00
parent abcb78d7cf
commit 3a5b0c9c31

View File

@@ -281,6 +281,10 @@ int CLuaInstMisc::GetRevision(lua_State *L)
std::string hw = "";
#if HAVE_COOL_HARDWARE
hw = "Coolstream";
#else
hw = g_info.hw_caps->boxvendor;
hw += "_";
hw += g_info.hw_caps->boxname;
#endif
rev = cs_get_revision();
lua_pushinteger(L, rev);