mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +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')
|
||||
{
|
||||
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