#!/bin/sh # First boot hardware detection and optimization HARDWARE_INFO="/etc/archipelago/hardware-info.sh" if [ -x "$HARDWARE_INFO" ]; then echo "🔍 Detecting hardware..." $HARDWARE_INFO > /var/log/archipelago-hardware.log 2>&1 echo "✓ Hardware detection complete" fi # Create system info file cat > /etc/archipelago/system-info.txt </dev/null) Runtime Detection: $(cat /var/log/archipelago-hardware.log 2>/dev/null) INFO