Add after.sh hook to sysc (similarly to after.kaem hook in stage0-posix).

This commit is contained in:
Andrius Štikonas 2022-05-21 00:50:27 +01:00
parent fc0368aa6a
commit c6ca548d5b
2 changed files with 11 additions and 2 deletions

8
sysc/after.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-License-Identifier: MIT
# Replace this hook if you wish to do more
exec env - PATH="${PREFIX}/bin" PS1="\w # " bash -i

View file

@ -102,5 +102,6 @@ fi
echo "Bootstrapping completed."
cd "${PREFIX}"
exec env - PATH="${PREFIX}/bin" PS1="\w # " bash -i
cd "/"
exec env -i PATH="${PATH}" PREFIX="${PREFIX}" SOURCES="${SOURCES}" DESTDIR="${DESTDIR}" DISTFILES="${DISTFILES}" bash after.sh