.version: fix path to .version in some relevant files

This commit is contained in:
2017-12-23 15:58:00 +01:00
parent 2ce57350ba
commit a48d9dc626
3 changed files with 5 additions and 5 deletions

View File

@@ -710,7 +710,7 @@ void CNetworkSetup::testNetworkSettings()
//get www-domain testsite from /.version //get www-domain testsite from /.version
CConfigFile config('\t'); CConfigFile config('\t');
config.loadConfig(TARGET_PREFIX "/.version"); config.loadConfig("/.version");
testsite = config.getString("homepage",defaultsite); testsite = config.getString("homepage",defaultsite);
testsite.replace( 0, testsite.find("www",0), "" ); testsite.replace( 0, testsite.find("www",0), "" );

View File

@@ -146,7 +146,7 @@ bool CFlashUpdate::checkOnlineVersion()
std::vector<CUpdateMenuTarget*> update_t_list; std::vector<CUpdateMenuTarget*> update_t_list;
CConfigFile _configfile('\t'); CConfigFile _configfile('\t');
const char * versionString = (_configfile.loadConfig(TARGET_PREFIX "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????"; const char * versionString = (_configfile.loadConfig( "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????";
#ifdef DEBUG #ifdef DEBUG
printf("[update] file %s\n", g_settings.softupdate_url_file.c_str()); printf("[update] file %s\n", g_settings.softupdate_url_file.c_str());
#endif #endif
@@ -203,7 +203,7 @@ bool CFlashUpdate::selectHttpImage(void)
CConfigFile _configfile('\t'); CConfigFile _configfile('\t');
std::string versionString = "????????????????"; std::string versionString = "????????????????";
if (_configfile.loadConfig(TARGET_PREFIX "/.version")) if (_configfile.loadConfig("/.version"))
versionString = _configfile.getString("version", "????????????????"); versionString = _configfile.getString("version", "????????????????");
CFlashVersionInfo curInfo(versionString.c_str()); CFlashVersionInfo curInfo(versionString.c_str());

View File

@@ -822,7 +822,7 @@ void CControlAPI::InfoCGI(CyhookHandler *hh)
if (hh->ParamList["1"] == "streaminfo") // print streaminfo if (hh->ParamList["1"] == "streaminfo") // print streaminfo
SendStreamInfo(hh); SendStreamInfo(hh);
else if (hh->ParamList["1"] == "version") // send version file else if (hh->ParamList["1"] == "version") // send version file
hh->SendFile(TARGET_PREFIX "/.version"); hh->SendFile("/.version");
else if (hh->ParamList["1"] == "httpdversion") // print httpd version typ (just for compatibility) else if (hh->ParamList["1"] == "httpdversion") // print httpd version typ (just for compatibility)
hh->Write("3"); hh->Write("3");
else if (hh->ParamList["1"] == "nhttpd_version")// print nhttpd version else if (hh->ParamList["1"] == "nhttpd_version")// print nhttpd version
@@ -2052,7 +2052,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CControlAPI::VersionCGI(CyhookHandler *hh) void CControlAPI::VersionCGI(CyhookHandler *hh)
{ {
hh->SendFile(TARGET_PREFIX "/.version"); hh->SendFile("/.version");
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CControlAPI::ReloadNeutrinoSetupCGI(CyhookHandler *hh) void CControlAPI::ReloadNeutrinoSetupCGI(CyhookHandler *hh)