#!/data/data/com.termux/files/usr/bin/bash
#
# Termux:Boot startup script
# Install: cp this to ~/.termux/boot/start-sms-server
# Requires: Termux:Boot app from F-Droid
#

# Prevent Android from killing background processes
termux-wake-lock

# Source env (API key, PATH, etc.)
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"

# Source runit helpers — this starts the runit supervisor
# which automatically picks up all services in $PREFIX/var/service/
. "$PREFIX/etc/profile.d/start-services.sh" 2>/dev/null || true
