mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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;
|
||||
|
||||
|
Reference in New Issue
Block a user