"Das U-Boot" Source Tree
1.. SPDX-License-Identifier: GPL-2.0+:
2
3.. index::
4 single: bootd (command)
5
6bootd command
7=============
8
9Synopsis
10--------
11
12::
13
14 bootd
15
16Description
17-----------
18
19The bootd command executes the command stored in the environment variable
20*bootcmd*, i.e. it does the same thing as *run bootcmd*.
21
22Example
23-------
24
25::
26
27 => setenv bootcmd 'echo Hello World'
28 => bootd
29 Hello World
30 => setenv bootcmd true
31 => bootd; echo $?
32 0
33 => setenv bootcmd false
34 => bootd; echo $?
35 1
36
37Return value
38------------
39
40The return value $? of the bootd command is the return value of the command in
41the environment variable *bootcmd*.