Image backup apollo Part #5

- Rework handling devtable
- Use file for devtable '/var/tuxbox/config/devtable.txt'
- If file is empty or does not exist, will default entries
  '/dev/console' and '/dev/null' creates
This commit is contained in:
Michael Liebmann
2013-09-24 07:51:10 +02:00
parent 23163e7897
commit 9188c78751
4 changed files with 90 additions and 90 deletions

View File

@@ -39,6 +39,9 @@
#include <gui/widget/progresswindow.h>
#include <driver/framebuffer.h>
#ifdef BOXMODEL_APOLLO
#include <system/mtdutils/mkfs.jffs2.h>
#endif
#include <string>
@@ -78,7 +81,7 @@ class CFlashExpert : public CProgressWindow
bool checkSize(int mtd, std::string &backupFile);
void readmtd(int readmtd);
#ifdef BOXMODEL_APOLLO
void addDevtableEntry(int fd_dev, const char *entry);
bool readDevtableFile(std::string &devtableFile, CMkfsJFFS2::v_devtable_t &v_devtable);
void readmtdJFFS2(std::string &filename);
#endif