fix sdext backup bug
This commit is contained in:
parent
5cd94a9a73
commit
52d3f205b5
@ -26,7 +26,7 @@ LOCAL_MODULE := recovery
|
||||
|
||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||
|
||||
RECOVERY_VERSION := ClockworkMod Recovery v2.0.0.8
|
||||
RECOVERY_VERSION := ClockworkMod Recovery v2.0.1.0
|
||||
LOCAL_CFLAGS := -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
|
||||
RECOVERY_API_VERSION := 2
|
||||
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||
|
@ -154,7 +154,7 @@ int nandroid_backup(const char* backup_path)
|
||||
return ret;
|
||||
|
||||
struct stat st;
|
||||
if (0 == stat(SDEXT_DEVICE, &st))
|
||||
if (0 != stat(SDEXT_DEVICE, &st))
|
||||
{
|
||||
ui_print("No sd-ext found. Skipping backup of sd-ext.\n");
|
||||
}
|
||||
|
@ -478,8 +478,6 @@ print_property(const char *key, const char *name, void *cookie)
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
LOGI(EXPAND(RECOVERY_VERSION)"\n");
|
||||
|
||||
if (strstr(argv[0], "recovery") == NULL)
|
||||
{
|
||||
if (strstr(argv[0], "flash_image") != NULL)
|
||||
@ -496,6 +494,7 @@ main(int argc, char **argv)
|
||||
return amend_main(argc, argv);
|
||||
return busybox_driver(argc, argv);
|
||||
}
|
||||
LOGI(EXPAND(RECOVERY_VERSION)"\n");
|
||||
create_fstab();
|
||||
__system("/sbin/postrecoveryboot.sh");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user