瀏覽代碼

openwrt: Default to iptables-nft

OpenWrt is moving to using nftables by default, but the 'iptables' binary
is likely to stick around for a while. So add a platform-specific
preference for using iptables-nft (if it exists). We'll still fall back to
'iptables' if 'iptables-nft' is not installed on the system, and we'll
still get the warning if neither exists and simple.qos is used.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Toke Høiland-Jørgensen 2 年之前
父節點
當前提交
350432dee8
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      platform/openwrt/sqm.conf

+ 2 - 0
platform/openwrt/sqm.conf

@@ -3,3 +3,5 @@ SQM_STATE_DIR=/var/run/sqm
 SQM_QDISC_STATE_DIR=${SQM_STATE_DIR}/available_qdiscs
 SQM_CHECK_QDISCS="fq_codel codel pie sfq cake"
 SQM_SYSLOG=1
+IP6TABLES_BINARY=$(command -v ip6tables-nft)
+IPTABLES_BINARY=$(command -v iptables-nft)