From 5a3f1d8af5d6a8958212053a665937c374a54379 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Fri, 31 Dec 2010 02:16:00 -0500 Subject: [PATCH] Erase WiMAX device before restore. --- nandroid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nandroid.c b/nandroid.c index e0aa757..60aa564 100644 --- a/nandroid.c +++ b/nandroid.c @@ -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;