mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
neutrinoyparser: use hw_caps to find boxname/type/arch
This commit is contained in:
@@ -767,6 +767,7 @@ std::string CNeutrinoYParser::func_get_partition_list(CyhookHandler *, std::str
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
unsigned int system_rev = cs_get_revision();
|
unsigned int system_rev = cs_get_revision();
|
||||||
std::string boxname = "CST ";
|
std::string boxname = "CST ";
|
||||||
|
|
||||||
@@ -811,7 +812,15 @@ std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
|||||||
boxname += buffer;
|
boxname += buffer;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
std::string boxname = g_info.hw_caps->boxvendor;
|
||||||
|
if (boxname.compare("Coolstream") == 0)
|
||||||
|
boxname = "CST"; /* that's more or less an external API... */
|
||||||
|
boxname += " " + std::string(g_info.hw_caps->boxname);
|
||||||
|
if (!strcmp(g_info.hw_caps->boxname, "Neo") &&
|
||||||
|
CFEManager::getInstance()->getFrontendCount() > 1)
|
||||||
|
boxname += " Twin";
|
||||||
|
#endif
|
||||||
return boxname;
|
return boxname;
|
||||||
}
|
}
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
@@ -819,6 +828,7 @@ std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string)
|
std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
unsigned int system_rev = cs_get_revision();
|
unsigned int system_rev = cs_get_revision();
|
||||||
std::string boxmodel = "Unknown";
|
std::string boxmodel = "Unknown";
|
||||||
|
|
||||||
@@ -842,7 +852,9 @@ std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
std::string boxmodel = std::string(g_info.hw_caps->boxarch);
|
||||||
|
#endif
|
||||||
return boxmodel;
|
return boxmodel;
|
||||||
}
|
}
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user