bootd.rst 604 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. bootd command
  3. =============
  4. Synopsis
  5. --------
  6. ::
  7. bootd
  8. Description
  9. -----------
  10. The bootd command executes the command stored in the environment variable
  11. *bootcmd*, i.e. it does the same thing as *run bootcmd*.
  12. Example
  13. -------
  14. ::
  15. => setenv bootcmd 'echo Hello World'
  16. => bootd
  17. Hello World
  18. => setenv bootcmd true
  19. => bootd; echo $?
  20. 0
  21. => setenv bootcmd false
  22. => bootd; echo $?
  23. 1
  24. Return value
  25. ------------
  26. The return value $? of the bootd command is the return value of the command in
  27. the environment variable *bootcmd*.