# Runs automatically when the ISO auto-logs in as root on tty1.
# Zero-touch: offer the turnkey install, but allow a bail-out to a normal shell.
if [ "$(tty)" = /dev/tty1 ]; then
    echo
    echo "=========================================================="
    echo "  arch-turnkey installer"
    echo "  Connect network first if needed (iwctl), then this runs:"
    echo "    curl -fsSL <arch-turnkey>/bootstrap.sh | bash"
    echo "=========================================================="
    echo
    printf "Press Enter to install, or Ctrl-C for a shell... "
    read -r _ || true
    curl -fsSL https://raw.githubusercontent.com/sudolulo/arch-turnkey/master/bootstrap.sh | bash
fi
