firewall4 icon indicating copy to clipboard operation
firewall4 copied to clipboard

[scripts] Remove unnecessary logic from stop script

Open brada4 opened this issue 1 year ago • 1 comments

Always remove table and service state to have consistent cleaned up system state on exit even if user intentionally dropped our table. Removes dependency on grep as a consequence.

Ref: https://wiki.nftables.org/wiki-nftables/index.php/Configuring_tables Supersedes: https://github.com/openwrt/firewall4/pull/33

Signed-off-by: Andris PE [email protected]

brada4 avatar Sep 02 '24 15:09 brada4

Hi @jow- According to "upstream documentation" no need to perform any checks before deleting table since kernel 4.9.0.

brada4 avatar Sep 02 '24 15:09 brada4

Merged via 00fc6943a29732375addf72a12f2381df5b25428 with slightly changed commit subject.

jow- avatar Mar 17 '25 15:03 jow-