mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-28 13:12:51 +08:00
56 lines
2.0 KiB
Diff
56 lines
2.0 KiB
Diff
--- a/luci-app-quickstart/Makefile
|
|
+++ b/luci-app-quickstart/Makefile
|
|
@@ -6,7 +6,7 @@
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
LUCI_TITLE:=LuCI support for quickstart
|
|
-LUCI_DEPENDS:=+quickstart +luci-app-store
|
|
+LUCI_DEPENDS:=+quickstart +luci-app-ttyd +luci-i18n-ttyd-zh-cn
|
|
LUCI_PKGARCH:=all
|
|
|
|
# PKG_RELEASE MUST be empty for luci.mk
|
|
|
|
--- a/luci-app-quickstart/luasrc/controller/quickstart.lua
|
|
+++ b/luci-app-quickstart/luasrc/controller/quickstart.lua
|
|
@@ -5,7 +5,7 @@ module("luci.controller.quickstart", package.seeall)
|
|
function index()
|
|
if luci.sys.call("pgrep quickstart >/dev/null") == 0 then
|
|
local uci = require "luci.model.uci".cursor()
|
|
- entry({"admin", "quickstart"}, template("quickstart/home"), _("QuickStart"), 1).leaf = true
|
|
+ entry({"admin", "quickstart"}, template("quickstart/home")).leaf = true
|
|
entry({"admin", "network_guide"}, call("networkguide_index"), _("NetworkGuide"), 2)
|
|
entry({"admin", "network_guide", "pages"}, call("quickstart_index", {index={"admin", "network_guide", "pages"}})).leaf = true
|
|
if uci:get("quickstart", "main", "wifi_menu") == "1" then
|
|
diff --git a/luci-app-quickstart/root/usr/share/luci/menu.d/luci-app-quickstart.json b/luci-app-quickstart/root/usr/share/luci/menu.d/luci-app-quickstart.json
|
|
deleted file mode 100644
|
|
index d1667bb..0000000
|
|
--- a/luci-app-quickstart/root/usr/share/luci/menu.d/luci-app-quickstart.json
|
|
+++ /dev/null
|
|
@@ -1,10 +0,0 @@
|
|
-{
|
|
- "admin/quickstart/*": {
|
|
- "title": "QuickStart",
|
|
- "order": 1,
|
|
- "action": {
|
|
- "type": "template",
|
|
- "path": "quickstart/home"
|
|
- }
|
|
- }
|
|
-}
|
|
\ No newline at end of file
|
|
diff --git a/luci-app-quickstart/root/usr/share/luci/menu.d/zz-luci-app-quickstart.json b/luci-app-quickstart/root/usr/share/luci/menu.d/zz-luci-app-quickstart.json
|
|
new file mode 100644
|
|
index 0000000..f97d1f1
|
|
--- /dev/null
|
|
+++ b/luci-app-quickstart/root/usr/share/luci/menu.d/zz-luci-app-quickstart.json
|
|
@@ -0,0 +1,9 @@
|
|
+{
|
|
+ "admin/dashboard": {
|
|
+ "depends": {
|
|
+ "uci": {
|
|
+ "disabled_by_quickstart": true
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+}
|