From d5f9061b36c29e2bb7ba82342ae5e5386ce64314 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 30 Nov 2025 21:05:22 -0500 Subject: [PATCH] stop: supress rdr list --- usr/local/share/bastille/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/stop.sh b/usr/local/share/bastille/stop.sh index d7fcb019..e6b26580 100644 --- a/usr/local/share/bastille/stop.sh +++ b/usr/local/share/bastille/stop.sh @@ -112,7 +112,7 @@ for _jail in ${JAILS}; do _ip6="$(bastille config ${_jail} get ip6.addr | sed 's/,/ /g')" if [ "${_ip4}" != "not set" ] || [ "${_ip6}" != "not set" ]; then if which -s pfctl; then - if [ "$(bastille rdr ${_jail} list)" ]; then + if bastille rdr ${_jail} list >/dev/null 2>&1; then bastille rdr "${_jail}" clear fi fi