Files
eternalwrt-mt798x/package/network/utils/xdp-tools/patches/0100-fix-configure-syntax.patch
T
Tianling Shen 2777fc61da xdp-tools: fix BPFTOOL detection
Fix sh syntax error in configure script.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2026-05-08 11:20:59 +08:00

17 lines
600 B
Diff

--- a/configure
+++ b/configure
@@ -109,11 +109,11 @@ check_toolchain()
exit 1
fi
- if ! command -v $BPFTOOL &>/dev/null; then
+ if ! command -v $BPFTOOL >/dev/null 2>&1; then
BPFTOOL=$(whereis -b bpftool | awk '{print $2}')
fi
- if command -v $BPFTOOL &>/dev/null && $BPFTOOL gen help 2>&1 | grep 'gen skeleton.*name' > /dev/null; then
+ if command -v $BPFTOOL >/dev/null 2>&1 && $BPFTOOL gen help 2>&1 | grep 'gen skeleton.*name' > /dev/null; then
bpftool_version=$($BPFTOOL version | head -n 1)
echo "using $bpftool_version"
else