Erase WiMAX device before restore.

This commit is contained in:
Joshua Wise 2010-12-31 02:16:00 -05:00
parent 05d4a09aba
commit 5a3f1d8af5

View File

@ -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;