include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI Support for k3usb3.0 on or off
-LUCI_DESCRIPTION:=LuCI Support for k3usb3.0 on or off.
LUCI_DEPENDS:=@TARGET_bcm53xx_generic_DEVICE_phicomm_k3
LUCI_PKGARCH:=all
module("luci.controller.k3usb", package.seeall)
function index()
- if not nixio.fs.access("/etc/config/k3usb") then
- return
- end
- entry({"admin","system","k3usb"}, cbi("k3usb"), _("k3usb"),60).acl_depends = { "luci-app-k3usb" }
+ if not nixio.fs.access("/etc/config/k3usb") then
+ return
+ end
+
+ local page = entry({"admin", "system", "k3usb"}, cbi("k3usb"), _("k3usb"), 60)
+ page.dependent = true
+ page.acl_depends = { "luci-app-k3usb" }
end
-- Copyright (C) 2018 XiaoShan mivm.cn
-local m, s ,o
+local m, s, o
-m = Map("k3usb", translate("k3usb"), translate("k3 usb mode"))
+m = Map("k3usb", translate("k3usb"))
+m.description = translate("k3 usb mode")
-s = m:section(TypedSection, "config", translate("usb mode") )
+s = m:section(TypedSection, "config", translate("usb mode"))
s.anonymous = true
-o = s:option(Flag, "usb3_enable", translate("usb3 enable :"), translate("usb3 mode enable"))
+o = s:option(Flag, "usb3_enable", translate("usb3 enable :"))
+o.description = translate("usb3 mode enable")
o.default = 1
return m