diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 1b925818d..dd04a9e7a 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -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; diff --git a/src/gui/opkg_manager.h b/src/gui/opkg_manager.h index 4979c9c9b..78cebaa49 100644 --- a/src/gui/opkg_manager.h +++ b/src/gui/opkg_manager.h @@ -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 config_dest;