fix backup
This commit is contained in:
parent
5306db57e5
commit
8c866dc252
@ -335,9 +335,9 @@ int do_nandroid_backup(char* backup_name)
|
||||
|
||||
char cmd[PATH_MAX];
|
||||
if (NULL != backup_name)
|
||||
sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/ %s", backup_name);
|
||||
else
|
||||
sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/");
|
||||
sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/ %s", backup_name);
|
||||
else
|
||||
sprintf(cmd, "/sbin/nandroid-mobile.sh backup /sdcard/clockworkmod/backup/");
|
||||
ui_print("Performing backup...\n");
|
||||
int ret = system(cmd);
|
||||
if (ret != 0)
|
||||
|
@ -17,7 +17,7 @@ void
|
||||
ui_set_show_text(int value);
|
||||
|
||||
int
|
||||
do_nandroid_backup();
|
||||
do_nandroid_backup(char* backup_name);
|
||||
|
||||
int
|
||||
do_nandroid_restore();
|
||||
|
@ -446,7 +446,7 @@ prompt_and_wait()
|
||||
show_install_update_menu();
|
||||
break;
|
||||
case ITEM_BACKUP:
|
||||
do_nandroid_backup();
|
||||
do_nandroid_backup(NULL);
|
||||
break;
|
||||
case ITEM_RESTORE:
|
||||
show_nandroid_restore_menu();
|
||||
|
Loading…
Reference in New Issue
Block a user