From 9640c2b4a5f911a7ddd897df948ef2ffcb6723f5 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 31 Mar 2011 12:43:59 +0200 Subject: environment: make default env path configurable Normally the default path to save the environment is /dev/env0. However, we can't map a file in a fat filesystem to /dev/env0. So if we want to store the environment in a file in fat we have to make it configurable. Signed-off-by: Sascha Hauer --- commands/loadenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/loadenv.c') diff --git a/commands/loadenv.c b/commands/loadenv.c index c33c34fcee..5568aced88 100644 --- a/commands/loadenv.c +++ b/commands/loadenv.c @@ -36,7 +36,7 @@ static int do_loadenv(struct command *cmdtp, int argc, char *argv[]) else dirname = argv[2]; if (argc < 2) - filename = "/dev/env0"; + filename = default_environment_path; else filename = argv[1]; printf("loading environment from %s\n", filename); -- cgit v1.2.3