blockcheck: test tpws exists

This commit is contained in:
bol-van 2025-04-08 16:17:40 +03:00
parent ad5c246629
commit 2fb93c6add

View File

@ -361,11 +361,13 @@ check_system()
Linux)
PKTWS="$NFQWS"
PKTWSD=nfqws
if tpws_can_fix_seg ; then
echo tpws supports --fix-seg on this system
FIX_SEG='--fix-seg'
else
echo tpws does not support --fix-seg on this system
if [ -x "$TPWS" ] ; then
if tpws_can_fix_seg ; then
echo tpws supports --fix-seg on this system
FIX_SEG='--fix-seg'
else
echo tpws does not support --fix-seg on this system
fi
fi
linux_fwtype
[ "$FWTYPE" = iptables -o "$FWTYPE" = nftables ] || {