#!/usr/bin/env bash
# Re-runs the installer in place: installs missing packages, fixes the virtual
# mouse, the firewall rule, the Python env and the service. Keeps config and phones.
BASE="${XDG_DATA_HOME:-$HOME/.local/share}/danke-hmi"
if [ ! -f "$BASE/installer.sh" ]; then
  echo "Installeur introuvable. Réinstalle avec :"
  echo "  curl -fsSL https://www.710hub.com/DankeHMI/install.sh | bash"
  exit 1
fi
exec bash "$BASE/installer.sh" --repair "$@"
