mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- controlapi: add boxmodel to control/info?hwinfo
This commit is contained in:
@@ -630,12 +630,13 @@ void CControlAPI::InfoCGI(CyhookHandler *hh)
|
|||||||
void CControlAPI::HWInfoCGI(CyhookHandler *hh)
|
void CControlAPI::HWInfoCGI(CyhookHandler *hh)
|
||||||
{
|
{
|
||||||
std::string boxname = NeutrinoAPI->NeutrinoYParser->func_get_boxtype(hh, "");
|
std::string boxname = NeutrinoAPI->NeutrinoYParser->func_get_boxtype(hh, "");
|
||||||
|
std::string boxmodel = NeutrinoAPI->NeutrinoYParser->func_get_boxmodel(hh, "");
|
||||||
|
|
||||||
static CNetAdapter netadapter;
|
static CNetAdapter netadapter;
|
||||||
std::string eth_id = netadapter.getMacAddr();
|
std::string eth_id = netadapter.getMacAddr();
|
||||||
std::transform(eth_id.begin(), eth_id.end(), eth_id.begin(), ::tolower);
|
std::transform(eth_id.begin(), eth_id.end(), eth_id.begin(), ::tolower);
|
||||||
|
|
||||||
hh->printf("%s\nMAC:%s\n", boxname.c_str(),eth_id.c_str());
|
hh->printf("%s (%s)\nMAC:%s\n", boxname.c_str(), boxmodel.c_str(), eth_id.c_str());
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CControlAPI::ShutdownCGI(CyhookHandler *hh)
|
void CControlAPI::ShutdownCGI(CyhookHandler *hh)
|
||||||
|
Reference in New Issue
Block a user