Skip to content

Commit

Permalink
luci app flow HWNAT depends fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Sep 29, 2018
1 parent 1306b0d commit 56731cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion feeds.conf.default
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package/lean/luci-app-flowoffload/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down

0 comments on commit 56731cc

Please sign in to comment.