fix backup

This commit is contained in:
Koushik K. Dutta 2010-03-08 14:20:37 -08:00
parent 5306db57e5
commit 8c866dc252
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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