mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
COPKGManager: don't init if no opkg support available
This avoids creating of any basic configuration files or directories on
non opkg supported firmware releases.
Origin commit data
------------------
Branch: ni/coolstream
Commit: bea8f5e980
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-29 (Tue, 29 Dec 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -105,6 +105,14 @@ static const string pkg_types[OM_MAX] =
|
||||
|
||||
COPKGManager::COPKGManager(): opkg_conf('\t')
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
void COPKGManager::init()
|
||||
{
|
||||
if (!hasOpkgSupport())
|
||||
return;
|
||||
|
||||
OM_ERRORS();
|
||||
width = 80;
|
||||
|
||||
|
@@ -51,7 +51,7 @@ class COPKGManager : public CMenuTarget
|
||||
void saveConfig();
|
||||
void loadConfig();
|
||||
struct pkg;
|
||||
|
||||
void init();
|
||||
//config
|
||||
std::string config_src[OPKG_MAX_FEEDS];
|
||||
std::vector<std::string> config_dest;
|
||||
|
Reference in New Issue
Block a user