blob: 619cfb601a0660ff2cadfaea1f7131f6309176c4 [file] [log] [blame]
Heinrich Schuchardtda0ae242022-11-14 10:30:58 +01001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: bootd (command)
5
Heinrich Schuchardtda0ae242022-11-14 10:30:58 +01006bootd 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*.