Heinrich Schuchardt | da0ae24 | 2022-11-14 10:30:58 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame] | 3 | .. index:: |
| 4 | single: bootd (command) |
| 5 | |
Heinrich Schuchardt | da0ae24 | 2022-11-14 10:30:58 +0100 | [diff] [blame] | 6 | bootd command |
| 7 | ============= |
| 8 | |
| 9 | Synopsis |
| 10 | -------- |
| 11 | |
| 12 | :: |
| 13 | |
| 14 | bootd |
| 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | The bootd command executes the command stored in the environment variable |
| 20 | *bootcmd*, i.e. it does the same thing as *run bootcmd*. |
| 21 | |
| 22 | Example |
| 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 | |
| 37 | Return value |
| 38 | ------------ |
| 39 | |
| 40 | The return value $? of the bootd command is the return value of the command in |
| 41 | the environment variable *bootcmd*. |