Heinrich Schuchardt | 5727f92 | 2022-11-14 10:30:58 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | bootd command |
| 4 | ============= |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | bootd |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The bootd command executes the command stored in the environment variable |
| 17 | *bootcmd*, i.e. it does the same thing as *run bootcmd*. |
| 18 | |
| 19 | Example |
| 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 | |
| 34 | Return value |
| 35 | ------------ |
| 36 | |
| 37 | The return value $? of the bootd command is the return value of the command in |
| 38 | the environment variable *bootcmd*. |