u-boot/doc/usage/cmd/bootd.rst
Heinrich Schuchardt 5727f922ca Documentation: man-page for command bootd
Provide a man-page for the bootd command.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-11-16 08:34:06 +01:00

38 lines
604 B
ReStructuredText

.. SPDX-License-Identifier: GPL-2.0+:
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
-------
::
=> setenv bootcmd 'echo Hello World'
=> bootd
Hello World
=> setenv bootcmd true
=> bootd; echo $?
0
=> setenv 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*.