Documentation: defaultenv-2: Document C-based init script
PATCH 1/1 Documentation: defaultenv-2: Document C-based init script
Add a note to clarify that the default init script is now implemented in C rather than as a shell script.
Fixes 90df2a955e3c ("defaultenv: Convert init script to C")
Signed-off-by Sohaib Mohamed <[email protected]>
--- Documentation/user/defaultenv-2.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/user/defaultenv-2.rst +4 -3
@@ -50,9 +50,10 @@ and their respective included directories in ``defaultenv/Makefile``: /env/bin/init ------------- -This script is executed by the barebox startup code after initialization. -In defaultenv-2, this script will define and set a number of global -variables, followed by sourcing all of the scripts in ``/env/init/`` with: +The default init script is now written in C. However, you can still define +your own ``/env/bin/init`` script and it will take precedence over the +built-in C implementation. +Example for simple init script: .. code-block:: sh
---
base-commit: 0633a4db9d2351234b565b55978ce068b387eb2d
change-id: 20251110-fixup_docs-0566a0084735
Best regards,
Signature · 1 line
Sohaib Mohamed <[email protected]>
Sascha Hauer
AppliedQuoted 4 lines · Sohaib Mohamed
Add a note to clarify that the default init script is now implemented in C rather than as a shell script.
Applied, thanks!
[1/1] Documentation: defaultenv-2: Document C-based init script
https://git.pengutronix.de/cgit/barebox/commit/?id=776a3ddf6823 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>