luci: add system feature flag for iptables

This commit is contained in:
Bard 2025-05-27 18:27:23 +08:00 committed by GitHub
parent 573299aa54
commit 04cda5a818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,6 +213,7 @@ const methods = {
relayd: access('/usr/sbin/relayd') == true,
apk: access('/usr/bin/apk') == true,
wifi: access('/sbin/wifi') == true,
iptables: access('/usr/sbin/iptables') == true,
offload_hw: system((`[[ $(. /etc/openwrt_release ; echo $DISTRIB_TARGET) == "mediatek"* || $(. /etc/openwrt_release ; echo $DISTRIB_TARGET) == *"bcm"* ]]`)) == 0,
};