Add extension mechanism to execute .sh files dropped in /steps/after

These are executed at the end of the bootstrap, if /steps/after exists.
In interactive mode, they run before the interactive prompt is displayed.
This commit is contained in:
Gábor Stefanik 2024-04-16 20:53:52 +02:00
parent 5595a06ad9
commit c73d8c9dc1
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
. /steps/bootstrap.cfg
. /steps/env
if [ -d /steps/after ]; then
find /steps/after -maxdepth 1 -name '*.sh' -exec bash {} \;
fi
if [ "${INTERACTIVE}" = True ]; then
env - PATH=${PREFIX}/bin PS1="\w # " setsid openvt -fec1 -- bash -i
fi