removal of the recovery checkpoint needs to happen AFTER sdcard is mounted.

This commit is contained in:
Koushik Dutta 2010-07-15 00:10:08 -07:00
parent fae335e159
commit 92077c15d6
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ LOCAL_MODULE := recovery
LOCAL_FORCE_STATIC_EXECUTABLE := true
RECOVERY_VERSION := ClockworkMod Recovery v2.5.0.0
RECOVERY_VERSION := ClockworkMod Recovery v2.5.0.1
LOCAL_CFLAGS := -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
RECOVERY_API_VERSION := 2
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)

View File

@ -634,7 +634,6 @@ int run_and_remove_extendedcommand()
char tmp[PATH_MAX];
sprintf(tmp, "cp %s /tmp/%s", EXTENDEDCOMMAND_SCRIPT, basename(EXTENDEDCOMMAND_SCRIPT));
__system(tmp);
__system("rm /sdcard/clockworkmod/.recoverycheckpoint");
remove(EXTENDEDCOMMAND_SCRIPT);
int i = 0;
for (i = 20; i > 0; i--) {
@ -645,6 +644,7 @@ int run_and_remove_extendedcommand()
}
sleep(1);
}
remove("/sdcard/clockworkmod/.recoverycheckpoint");
if (i == 0) {
ui_print("Timed out waiting for SD card... continuing anyways.");
}