#!/bin/sh # Removes the BroV network core services (sudo sh scripts/netcore/uninstall.sh). # Keys stay in /Library/Application Support/BroV/netcore unless you pass --purge. # After this the Mac goes online by itself; turn AmneziaVPN back on if needed. set -e [ "$(id -u)" -eq 0 ] || { echo "Запусти через sudo: sudo sh $0"; exit 1; } for label in local.maksar.brov.netctl local.maksar.brov.netd; do launchctl bootout "system/$label" 2>/dev/null || true rm -f "/Library/LaunchDaemons/$label.plist" done rm -f /var/run/brov-netctl.sock if [ "$1" = "--purge" ]; then rm -rf "/Library/Application Support/BroV" /Library/Logs/BroV echo "✓ Службы, ядро и ключи удалены." else echo "✓ Службы ядра BroV остановлены и удалены. Ключи остались в /Library/Application Support/BroV/netcore (root)." fi