cmd_recovery: fix run_command("set ...") `set <var>` -> `setenv <var>`

This commit is contained in:
Alexander Couzens 2015-03-12 01:47:51 +01:00
parent 72e548d4c5
commit 93aed6751b
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (rc < 0)
return env_failed();
rc = run_command("setenv autoload no; set netretry no; dhcp", 0);
rc = run_command("setenv autoload no; setenv netretry no; dhcp", 0);
if (rc < 0)
return dhcp_failed();
@ -103,7 +103,7 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
if (rc < 0) {
rc = run_command("setenv filesize 0; "
"set serverip 255.255.255.255; "
"setenv serverip 255.255.255.255; "
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
}