mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
39 lines
1.1 KiB
Lua
39 lines
1.1 KiB
Lua
local m,s,o
|
|
local SYS = require "luci.sys"
|
|
|
|
|
|
if SYS.call("lsmod | grep fast_classifier >/dev/null") == 0 then
|
|
Status = translate("<strong><font color=\"green\">Shortcut Forwarding Engine is Running</font></strong>")
|
|
else
|
|
Status = translate("<strong><font color=\"red\">Shortcut Forwarding Engine is Not Running</font></strong>")
|
|
end
|
|
|
|
m = Map("sfe")
|
|
m.title = translate("Shortcut Forwarding Engine Acceleration Settings")
|
|
m.description = translate("Opensource Qualcomm Shortcut FE driver (Fast Path)")
|
|
|
|
s = m:section(TypedSection, "sfe", "")
|
|
s.addremove = false
|
|
s.anonymous = true
|
|
s.description = translate(string.format("%s<br /><br />", Status))
|
|
|
|
enable = s:option(Flag, "enabled", translate("Enable"))
|
|
enable.default = 0
|
|
enable.rmempty = false
|
|
|
|
wifi = s:option(Flag, "wifi", translate("Wireless Acceleration"))
|
|
wifi.default = 0
|
|
wifi.rmempty = false
|
|
wifi.description = translate("Enable Wireless Bridge Acceleration")
|
|
|
|
ipv6 = s:option(Flag, "ipv6", translate("IPv6 Acceleration"))
|
|
ipv6.default = 0
|
|
ipv6.rmempty = false
|
|
ipv6.description = translate("Enable IPv6 Acceleration")
|
|
|
|
--function m.on_after_commit(self)
|
|
|
|
--end
|
|
|
|
return m
|