small-packages/.github/diy/patches/quickstart.patch
2026-05-10 09:47:52 +08:00

39 lines
1.4 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_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()
entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false
if luci.sys.call("pgrep quickstart >/dev/null") == 0 then
- 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 nixio.fs.access("/usr/lib/lua/luci/view/quickstart/main_dev.htm") then
--- 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