#!/usr/bin/env bash set -euo pipefail echo "🔧 [heal_bios] Checking firmware…" | tee -a "$HOME/Desktop/AI_Brain/logs/hypothalamus.log" OS=$(uname -s) if [[ "$OS" == "Darwin" ]]; then echo "ℹ️ macOS BIOS/EFI healing = manual (PRAM/SMC reset)" | tee -a "$HOME/Desktop/AI_Brain/logs/hypothalamus.log" elif [[ "$OS" == "Linux" ]]; then if command -v fwupdmgr >/dev/null; then fwupdmgr refresh && fwupdmgr update -y && echo "✅ Linux firmware updated" | tee -a "$HOME/Desktop/AI_Brain/logs/hypothalamus.log" fi elif [[ "$OS" == "MINGW"* || "$OS" == "CYGWIN"* ]]; then echo "ℹ️ Windows BIOS healing = via vendor utilities" | tee -a "$HOME/Desktop/AI_Brain/logs/hypothalamus.log" fi