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:
2015-12-29 14:52:39 +01:00
parent 974480fc4f
commit bea8f5e980
2 changed files with 9 additions and 1 deletions

View File

@@ -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;