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(-)
diff --git a/Documentation/user/defaultenv-2.rst
b/Documentation/user/defaultenv-2.rst
index
3715fd770d9d89d52172bcc1e7564d871977aa30..e5cb4a51bfad47e5022fb719d513a201519334e5
100644
--- a/Documentation/user/defaultenv-2.rst
+++ b/Documentation/user/defaultenv-2.rst
@@ -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,
--
Sohaib Mohamed <[email protected]>