#!/bin/sh set -eu if [ "$(id -u)" -ne 0 ]; then echo "Run as root on OPNsense" >&2 exit 1 fi /usr/local/sbin/configctl rustproxy stop >/dev/null 2>&1 || true pkg delete -y os-rustproxy || true service configd restart /usr/local/sbin/pluginctl -cq cache_flush >/dev/null 2>&1 || true echo "RustProxy package removed."