#!/bin/bash # QMA Installer for MiSTer # # Simple one-line installation: # curl -L qma.sh | bash # # This script downloads and installs QMA (qma.sh) on your MiSTer device echo "=======================================" echo " QuarterMiSTer Agent Installer " echo "=======================================" echo # Check if we're on MiSTer by looking for /media/fat if [ ! -d "/media/fat" ]; then echo "Error: This doesn't appear to be a MiSTer system." echo " /media/fat directory not found." exit 1 fi # Download the latest qma.sh from quartermister.com echo "Downloading QuarterMiSTer Agent..." if curl -kL https://quartermister.com/latest/qma.sh -o /media/fat/Scripts/qma.sh; then echo "Downloaded!" else echo "Error: Failed to download QuarterMiSTer Agent" echo " Please check your internet connection and try again." exit 1 fi # Make qma.sh executable echo "Preparing..." chmod +x /media/fat/Scripts/qma.sh echo "Launching QuarterMiSTer Agent..." echo # Launch qma.sh with stdin redirected to allow user input /media/fat/Scripts/qma.sh < /dev/tty