From d756900191b84e8b16af063acba4364e84ecced2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 19 Mar 2017 01:04:48 +0100 Subject: [PATCH] controlapi: use "CST" instead of "Coolstream" ... because I don't know the current legal situation. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9e5c30f7547c212a9278ac5251e8e1f39f631976 Author: vanhofen Date: 2017-03-19 (Sun, 19 Mar 2017) Origin message was: ------------------ - controlapi: use "CST" instead of "Coolstream" ... because I don't know the current legal situation. ------------------ This commit was generated by Migit --- src/nhttpd/tuxboxapi/controlapi.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index bb5eb829b..38e47231d 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -810,7 +810,15 @@ void CControlAPI::HWInfoCGI(CyhookHandler *hh) std::string eth_id = netadapter.getMacAddr(); std::transform(eth_id.begin(), eth_id.end(), eth_id.begin(), ::tolower); - hh->printf("%s %s (%s)\nMAC:%s\n", g_info.hw_caps->boxvendor, g_info.hw_caps->boxname, g_info.hw_caps->boxarch, eth_id.c_str()); + std::string boxvendor(g_info.hw_caps->boxvendor); + /* + I don't know the current legal situation. + So better let's change the vendor's name to CST. + */ + if (boxvendor.compare("Coolstream") == 0) + boxvendor = "CST"; + + hh->printf("%s %s (%s)\nMAC:%s\n", boxvendor.c_str(), g_info.hw_caps->boxname, g_info.hw_caps->boxarch, eth_id.c_str()); } //----------------------------------------------------------------------------- void CControlAPI::ShutdownCGI(CyhookHandler *hh)