blob: 380ef15283a12213f4e8c7c1609d083bf03dd456 [file] [log] [blame]
Heinrich Schuchardtda0ae242022-11-14 10:30:58 +01001.. SPDX-License-Identifier: GPL-2.0+:
2
3bootd command
4=============
5
6Synopsis
7--------
8
9::
10
11 bootd
12
13Description
14-----------
15
16The bootd command executes the command stored in the environment variable
17*bootcmd*, i.e. it does the same thing as *run bootcmd*.
18
19Example
20-------
21
22::
23
24 => setenv bootcmd 'echo Hello World'
25 => bootd
26 Hello World
27 => setenv bootcmd true
28 => bootd; echo $?
29 0
30 => setenv bootcmd false
31 => bootd; echo $?
32 1
33
34Return value
35------------
36
37The return value $? of the bootd command is the return value of the command in
38the environment variable *bootcmd*.