From 820e55712dd382975b23f0b617ec7500b27d58cd Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 29 May 2025 22:13:32 +0000 Subject: Prevent failure on the nfoff script when filters do not exist in netfilter --- usr/libexec/commission/nfoff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/libexec') diff --git a/usr/libexec/commission/nfoff.sh b/usr/libexec/commission/nfoff.sh index 3c302df..bba9bad 100755 --- a/usr/libexec/commission/nfoff.sh +++ b/usr/libexec/commission/nfoff.sh @@ -3,4 +3,4 @@ for handle in $(nft -a list table inet filter | grep iifname | sed -E 's/.*#[[:s echo "Enable wwan0: nft delete rule inet filter input handle ${handle}" nft delete rule inet filter input handle ${handle} done -nft -a list table inet filter +nft -a list table inet filter 2>/dev/null || true -- cgit v1.2.3