The "env" command is the recommended environment management command, its "set" subcommand is the equivalent replacement for legacy "setenv" command. Update the documentation to use the contemporary "env set" command instead of legacy "setenv" command. Note that the "setenv" command is unlikely to be removed from U-Boot in the near future due to it being integral part of the command line ABI. Implemented using: $ sed -i 's@\<setenv\>@env set@g' $(git grep -li '\<setenv\>' doc/) README Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
42 lines
646 B
ReStructuredText
42 lines
646 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+:
|
|
|
|
.. index::
|
|
single: bootd (command)
|
|
|
|
bootd command
|
|
=============
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
::
|
|
|
|
bootd
|
|
|
|
Description
|
|
-----------
|
|
|
|
The bootd command executes the command stored in the environment variable
|
|
*bootcmd*, i.e. it does the same thing as *run bootcmd*.
|
|
|
|
Example
|
|
-------
|
|
|
|
::
|
|
|
|
=> env set bootcmd 'echo Hello World'
|
|
=> bootd
|
|
Hello World
|
|
=> env set bootcmd true
|
|
=> bootd; echo $?
|
|
0
|
|
=> env set bootcmd false
|
|
=> bootd; echo $?
|
|
1
|
|
|
|
Return value
|
|
------------
|
|
|
|
The return value $? of the bootd command is the return value of the command in
|
|
the environment variable *bootcmd*.
|