update 2023-07-13 16:24:55
This commit is contained in:
parent
497ab3e085
commit
62832a175c
|
@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for quickstart
|
||||||
LUCI_DEPENDS:=+quickstart +luci-app-store
|
LUCI_DEPENDS:=+quickstart +luci-app-store
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|
||||||
PKG_VERSION:=0.7.9-1
|
PKG_VERSION:=0.7.9-3
|
||||||
# PKG_RELEASE MUST be empty for luci.mk
|
# PKG_RELEASE MUST be empty for luci.mk
|
||||||
PKG_RELEASE:=
|
PKG_RELEASE:=
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2,6 +2,7 @@
|
||||||
<%
|
<%
|
||||||
local jsonc = require "luci.jsonc"
|
local jsonc = require "luci.jsonc"
|
||||||
local features = { "_lua_force_array_" }
|
local features = { "_lua_force_array_" }
|
||||||
|
local configs = {}
|
||||||
if luci.sys.call("which ota >/dev/null 2>&1 && ota >/dev/null 2>&1") == 0 then
|
if luci.sys.call("which ota >/dev/null 2>&1 && ota >/dev/null 2>&1") == 0 then
|
||||||
features[#features+1] = "ota"
|
features[#features+1] = "ota"
|
||||||
end
|
end
|
||||||
|
@ -14,6 +15,16 @@
|
||||||
if luci.sys.call("[ -e /etc/init.d/unishare ] >/dev/null 2>&1") == 0 then
|
if luci.sys.call("[ -e /etc/init.d/unishare ] >/dev/null 2>&1") == 0 then
|
||||||
features[#features+1] = "unishare"
|
features[#features+1] = "unishare"
|
||||||
end
|
end
|
||||||
|
if luci.sys.call("/etc/init.d/ttyd running >/dev/null 2>&1") == 0 then
|
||||||
|
features[#features+1] = "ttyd"
|
||||||
|
local uci = require "luci.model.uci".cursor()
|
||||||
|
local port = uci:get_first("ttyd", "ttyd", "port") or "7681"
|
||||||
|
local ssl = uci:get_first("ttyd", "ttyd", "ssl") or "0"
|
||||||
|
configs["ttyd"] = {
|
||||||
|
port = tonumber(port),
|
||||||
|
ssl = ssl == "1"
|
||||||
|
}
|
||||||
|
end
|
||||||
-%>
|
-%>
|
||||||
<script>
|
<script>
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -21,6 +32,7 @@
|
||||||
var vue_prefix="<%=prefix%>";
|
var vue_prefix="<%=prefix%>";
|
||||||
window.vue_base = vue_prefix + '/';
|
window.vue_base = vue_prefix + '/';
|
||||||
window.quickstart_features = <%=jsonc.stringify(features)%>;
|
window.quickstart_features = <%=jsonc.stringify(features)%>;
|
||||||
|
window.quickstart_configs = <%=jsonc.stringify(configs)%>;
|
||||||
if (location.pathname != vue_prefix && !location.pathname.startsWith(window.vue_base)) {
|
if (location.pathname != vue_prefix && !location.pathname.startsWith(window.vue_base)) {
|
||||||
if (window.history && window.history.replaceState) {
|
if (window.history && window.history.replaceState) {
|
||||||
window.history.replaceState({}, null, vue_prefix);
|
window.history.replaceState({}, null, vue_prefix);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=lucky
|
PKG_NAME:=lucky
|
||||||
PKG_VERSION:=1.10.8
|
PKG_VERSION:=2.1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=GDY666 <gdy666@foxmail.com>
|
PKG_MAINTAINER:=GDY666 <gdy666@foxmail.com>
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
PKG_HASH:=29afa5b8bc15d798f6bf37c5b31f5ba20cef0b2dbec43b1b9f4f5391565805e3
|
PKG_HASH:=05f508c6966112cf41e72fa753d8e6ba89b121a8f4ed87a15c84b15b694c2508
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,13 @@ PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
GEOIP_VER:=202307060057
|
GEOIP_VER:=202307130057
|
||||||
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
||||||
define Download/geoip
|
define Download/geoip
|
||||||
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
||||||
URL_FILE:=geoip.dat
|
URL_FILE:=geoip.dat
|
||||||
FILE:=$(GEOIP_FILE)
|
FILE:=$(GEOIP_FILE)
|
||||||
HASH:=a200767fcf152a4886c8bbfc8e9b8325cb405dd8076f911a7d49edb3ddf20024
|
HASH:=fbb97fd66681eacb14c8655a24b68d15ff87f5a6222aa337dca14f6c46cdeb6e
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20230711133630
|
GEOSITE_VER:=20230711133630
|
||||||
|
|
Loading…
Reference in New Issue