Revert "cmd_recovery: seperate multicommand lines by "&&"."
This reverts commit a418c264b2
.
run_command() doesn't understand &&.
This commit is contained in:
parent
b5cd30559c
commit
7ea899a6d8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue