mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- update: ask for copy settings to new image
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -621,6 +621,21 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
{
|
||||
showGlobalStatus(100);
|
||||
|
||||
// create settings package
|
||||
int copy_settings = ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_FLASHUPDATE_COPY_SETTINGS, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_UPDATE);
|
||||
if (copy_settings == CMsgBox::mbrYes)
|
||||
{
|
||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, LOCALE_SETTINGS_BACKUP);
|
||||
hintBox.paint();
|
||||
/*
|
||||
Settings tarball is created in /tmp directory.
|
||||
ofgwrite will copy this tarball to new rootfs.
|
||||
It's untared at first start of new image.
|
||||
*/
|
||||
my_system(3, "/bin/backup.sh", "/tmp", "backup_flash.tar.gz");
|
||||
hintBox.hide();
|
||||
}
|
||||
|
||||
// get active partition
|
||||
char c[2] = {0};
|
||||
FILE *f;
|
||||
|
@@ -632,6 +632,7 @@ typedef enum
|
||||
LOCALE_FLASHUPDATE_CHECKUPDATE_LOCAL,
|
||||
LOCALE_FLASHUPDATE_CHOOSE_PARTITION,
|
||||
LOCALE_FLASHUPDATE_COPY_IMAGE,
|
||||
LOCALE_FLASHUPDATE_COPY_SETTINGS,
|
||||
LOCALE_FLASHUPDATE_CREATEIMAGE,
|
||||
LOCALE_FLASHUPDATE_CREATEIMAGE_ADD_ENV,
|
||||
LOCALE_FLASHUPDATE_CREATEIMAGE_ADD_KERNEL,
|
||||
|
@@ -632,6 +632,7 @@ const char * locale_real_names[] =
|
||||
"flashupdate.checkupdate_local",
|
||||
"flashupdate.choose_partition",
|
||||
"flashupdate.copy_image",
|
||||
"flashupdate.copy_settings",
|
||||
"flashupdate.createimage",
|
||||
"flashupdate.createimage_add_env",
|
||||
"flashupdate.createimage_add_kernel",
|
||||
|
Reference in New Issue
Block a user