logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: c73d8c9dc1961ea04451fded356df52db6539bac
parent 5595a06ad9ed422c5550c3113c3441331149a0be
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date:   Tue, 16 Apr 2024 20:53:52 +0200

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.

Diffstat:

Msteps/improve/after.sh4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/steps/improve/after.sh b/steps/improve/after.sh @@ -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