changemaker.lite/termux-sms/termux-boot-start.sh
bunker-admin 9321aeb263 Move SMS phone bridge from campaign_connector submodule into main repo
Consolidates the Termux SMS server code (previously in a separate
campaign_connector git submodule) into termux-sms/ at repo root.
Updates phone clone commands to use sparse checkout so only the
termux-sms/ directory is downloaded onto the Android device.

Bunker Admin
2026-03-31 11:04:14 -06:00

17 lines
514 B
Bash

#!/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