From 04f9fae67cb7913d821f16daa792c92fae1ea35a Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 5 Sep 2016 11:22:39 +0200 Subject: [FIRE-4520] Use discovered pfctl binary and style improvement --- include/tests_firewalls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tests_firewalls') diff --git a/include/tests_firewalls b/include/tests_firewalls index 157166b0..7eff6cdc 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -265,7 +265,7 @@ if [ -f /etc/pf.conf ]; then LogText "Result: /etc/pf.conf exists" # Check results from pfctl - PFWARNINGS=`pfctl -n -f /etc/pf.conf -vvv 2>&1 | ${GREPBINARY} -i 'warning'` + PFWARNINGS=$(${PFCTLBINARY} -n -f /etc/pf.conf -vvv 2>&1 | ${GREPBINARY} -i 'warning') if [ "${PFWARNINGS}" = "" ]; then Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN LogText "Result: no pf filter warnings found" -- cgit v1.2.3