diff --git a/applications/luci-app-uugamebooster/luasrc/controller/uuplugin.lua b/applications/luci-app-uugamebooster/luasrc/controller/uuplugin.lua index ce8748d1..c4e38af0 100644 --- a/applications/luci-app-uugamebooster/luasrc/controller/uuplugin.lua +++ b/applications/luci-app-uugamebooster/luasrc/controller/uuplugin.lua @@ -1,11 +1,11 @@ -module("luci.controller.uuplugin",package.seeall) +module("luci.controller.uuplugin", package.seeall) function index() if not nixio.fs.access("/etc/config/uuplugin") then return end - entry({"admin", "services", "uuplugin"}, cbi("uuplugin/uuplugin"), ("UU GameAcc"), 99).dependent = true + entry({"admin", "services", "uuplugin"}, cbi("uuplugin"), ("UU GameAcc"), 99).dependent = true entry({"admin", "services", "uuplugin", "status"}, call("act_status")).leaf = true end diff --git a/applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin/uuplugin.lua b/applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin.lua similarity index 77% rename from applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin/uuplugin.lua rename to applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin.lua index 0bf3c5aa..51f70c82 100644 --- a/applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin/uuplugin.lua +++ b/applications/luci-app-uugamebooster/luasrc/model/cbi/uuplugin.lua @@ -1,12 +1,14 @@ require("luci.util") -mp = Map("uuplugin", translate("UU Game Accelerator")) +mp = Map("uuplugin") +mp.title = translate("UU Game Accelerator") mp.description = translate("A Paid Game Acceleration service") + mp:section(SimpleSection).template = "uuplugin/uuplugin_status" s = mp:section(TypedSection, "uuplugin") -s.anonymous=true -s.addremove=false +s.anonymous = true +s.addremove = false o = s:option(Flag, "enabled", translate("Enable")) o.default = 0