1 Revert "tools: env: use /run to store lockfile"
3 In OpenWRT we still use /var/lock as default location for lock files and
4 /run might not even exist. Revert the upstream change and restore the
7 This reverts upstream commit
8 https://source.denx.de/u-boot/u-boot/-/commit/aeb40f1166e072856f865d26d42a4bea1ec3a514
10 tools/env/fw_env_main.c | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
13 --- a/tools/env/fw_env_main.c
14 +++ b/tools/env/fw_env_main.c
15 @@ -73,7 +73,7 @@ void usage_printenv(void)
16 " -c, --config configuration file, default:" CONFIG_FILE "\n"
18 " -n, --noheader do not repeat variable name in output\n"
19 - " -l, --lock lock node, default:/run\n"
20 + " -l, --lock lock node, default:/var/lock\n"
24 @@ -88,7 +88,7 @@ void usage_env_set(void)
26 " -c, --config configuration file, default:" CONFIG_FILE "\n"
28 - " -l, --lock lock node, default:/run\n"
29 + " -l, --lock lock node, default:/var/lock\n"
30 " -s, --script batch mode to minimize writes\n"
33 @@ -206,7 +206,7 @@ int parse_setenv_args(int argc, char *ar
35 int main(int argc, char *argv[])
37 - char *lockname = "/run/" CMD_PRINTENV ".lock";
38 + char *lockname = "/var/lock/" CMD_PRINTENV ".lock";
40 int retval = EXIT_SUCCESS;