luci app flow HWNAT depends fix

This commit is contained in:
coolsnowwolf 2018-09-30 02:23:36 +08:00
parent 1306b0d11c
commit 56731cc3a1
4 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
src-git packages https://github.com/openwrt/packages.git;openwrt-18.06
src-git luci https://github.com/openwrt/luci.git^80cb4fef8c7db0dadc373fef122d7abb092a7191
src-git luci https://github.com/openwrt/luci.git^fb70693b7db1d4fcaf79f1ed2a3dadd9cd0ecd45
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-18.06
#src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Flow Offload
LUCI_DEPENDS:=@LINUX_4_14
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=6
PKG_RELEASE:=7
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -1,7 +1,7 @@
module("luci.controller.flowoffload", package.seeall)
function index()
if not nixio.fs.access("/etc/config/firewall") then
if not nixio.fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt") then
return
end
local page

View File

@ -19,6 +19,7 @@ hw = s:option(Flag, "flow_offloading_hw", translate("HWNAT"))
hw.default = 0
hw.rmempty = false
hw.description = translate("Enable Hardware NAT (depends on hw capability like MTK 762x)")
hw:depends( "flow_offloading", 1)