[FIRE-4520] Use discovered pfctl binary and style improvement

This commit is contained in:
Michael Boelen 2016-09-05 11:22:39 +02:00
parent 042e52c0b9
commit 04f9fae67c
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@
if [ -f /etc/pf.conf ]; then if [ -f /etc/pf.conf ]; then
LogText "Result: /etc/pf.conf exists" LogText "Result: /etc/pf.conf exists"
# Check results from pfctl # 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 if [ "${PFWARNINGS}" = "" ]; then
Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN
LogText "Result: no pf filter warnings found" LogText "Result: no pf filter warnings found"