mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 19:48:59 +01:00
Merge "common: nvedit: Support old format env default command"
This commit is contained in:
commit
40972e4b2f
1 changed files with 5 additions and 0 deletions
|
|
@ -747,6 +747,11 @@ static int do_env_default(cmd_tbl_t *cmdtp, int __flag,
|
|||
{
|
||||
int all = 0, flag = 0;
|
||||
|
||||
if (argc == 2 && strcmp(argv[1], "-f") == 0) {
|
||||
set_default_env("## Resetting to default environment\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
debug("Initial value for argc=%d\n", argc);
|
||||
while (--argc > 0 && **++argv == '-') {
|
||||
char *arg = *argv;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue