mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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.
This commit is contained in:
@@ -105,6 +105,14 @@ static const string pkg_types[OM_MAX] =
|
|||||||
|
|
||||||
COPKGManager::COPKGManager(): opkg_conf('\t')
|
COPKGManager::COPKGManager(): opkg_conf('\t')
|
||||||
{
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
void COPKGManager::init()
|
||||||
|
{
|
||||||
|
if (!hasOpkgSupport())
|
||||||
|
return;
|
||||||
|
|
||||||
OM_ERRORS();
|
OM_ERRORS();
|
||||||
width = 80;
|
width = 80;
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ class COPKGManager : public CMenuTarget
|
|||||||
void saveConfig();
|
void saveConfig();
|
||||||
void loadConfig();
|
void loadConfig();
|
||||||
struct pkg;
|
struct pkg;
|
||||||
|
void init();
|
||||||
//config
|
//config
|
||||||
std::string config_src[OPKG_MAX_FEEDS];
|
std::string config_src[OPKG_MAX_FEEDS];
|
||||||
std::vector<std::string> config_dest;
|
std::vector<std::string> config_dest;
|
||||||
|
Reference in New Issue
Block a user