Erase WiMAX device before restore.
This commit is contained in:
parent
05d4a09aba
commit
5a3f1d8af5
@ -315,6 +315,9 @@ int nandroid_restore(const char* backup_path, int restore_boot, int restore_syst
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_print("Erasing WiMAX before restore...\n");
|
||||
if (0 != (ret = format_device("wimax")))
|
||||
return print_and_error("Error while formatting wimax!\n");
|
||||
ui_print("Restoring WiMAX image...\n");
|
||||
if (0 != (ret = restore_raw_partition("wimax", tmp)))
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user