Made init script start genie bottle if genie is installed and we're not already in one.

This commit is contained in:
Richard Blair
2021-08-31 17:59:41 -04:00
parent 9b957e91b4
commit 06a36bf9c2

View File

@@ -60,6 +60,13 @@ pkg.uninstall() {
pkg.init() {
# Check if systemd-genie is installed, and let's execute that if we're not in a bottle.
if [ "$INSIDE_GENIE" != true ]; then
if [ -e /etc/genie.ini ]; then
genie -s
exit 0
fi
fi
echo "[INFO] Initializing ToxOS Shell..."
# Add Shell Binaries to PATH
declare -x PATH=$PATH:$HOME/.shell/bin