Skip to content

Commit 2fb93c6

Browse files
author
bol-van
committed
blockcheck: test tpws exists
1 parent ad5c246 commit 2fb93c6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

blockcheck.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,13 @@ check_system()
361361
Linux)
362362
PKTWS="$NFQWS"
363363
PKTWSD=nfqws
364-
if tpws_can_fix_seg ; then
365-
echo tpws supports --fix-seg on this system
366-
FIX_SEG='--fix-seg'
367-
else
368-
echo tpws does not support --fix-seg on this system
364+
if [ -x "$TPWS" ] ; then
365+
if tpws_can_fix_seg ; then
366+
echo tpws supports --fix-seg on this system
367+
FIX_SEG='--fix-seg'
368+
else
369+
echo tpws does not support --fix-seg on this system
370+
fi
369371
fi
370372
linux_fwtype
371373
[ "$FWTYPE" = iptables -o "$FWTYPE" = nftables ] || {

0 commit comments

Comments
 (0)