cmd_recovery: seperate multicommand lines by "&&".

This commit is contained in:
Alexander Couzens 2015-04-06 18:39:05 +02:00
parent fa2f0a886c
commit a418c264b2
1 changed files with 3 additions and 3 deletions

View File

@ -102,15 +102,15 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
rc = run_command("setenv filesize 0; "
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
if (rc < 0) {
rc = run_command("setenv filesize 0; "
"setenv serverip 255.255.255.255; "
rc = run_command("setenv filesize 0 && "
"setenv serverip 255.255.255.255 && "
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
}
if (rc < 0)
return tftp_failed();
rc = run_command("erase 0x9f050000 +0x7a0000; "
rc = run_command("erase 0x9f050000 +0x7a0000 && "
"cp.b 0x81000000 0x9f050000 0x7a0000", 0);
if (rc < 0)
return flash_failed();