* Software Update with apply the settings (Part11)

- Deletelist added to delete files or directories from image
- Files/Directories are marked by a prefixed '~' in the settingsupdate.conf
- Rework readBackupList()
This commit is contained in:
micha-bbg
2012-11-12 16:13:11 +01:00
parent d9cf5197f4
commit 1ca7ced674
7 changed files with 132 additions and 51 deletions

View File

@@ -54,14 +54,16 @@ class CExtUpdate
std::string backupList, defaultBackup;
std::string mountPkt;
CFileHelpers* FileHelpers;
std::vector<std::string> BlackList;
std::vector<std::string> copyList, blackList, deleteList;
bool applySettings(void);
bool readBackupList(const std::string & dstPath);
bool copyFileList(const std::string & fileList, const std::string & dstPath);
bool deleteFileList(const std::string & fileList);
bool readConfig(const std::string & Config);
bool findConfigEntry(std::string & line, std::string find);
bool isMtdramLoad();
bool checkSpecialFolders(std::string line, bool copy);
FILE * fUpdate;
char updateLogBuf[1024];