From 2fb93c6add808d740332f507d78233351a454ea6 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 8 Apr 2025 16:17:40 +0300 Subject: [PATCH] blockcheck: test tpws exists --- blockcheck.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 0cbbd8f..dd83158 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -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 ] || {