update xunyou (#47)

This commit is contained in:
练亮斌 2023-01-06 17:49:53 +08:00 committed by GitHub
parent 244c6fa1d6
commit 51da1b0e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.0.1-20221219
PKG_VERSION:=1.0.2-20230106
PKG_RELEASE:=
LUCI_TITLE:=LuCI support for xunyou

View File

@ -6,7 +6,7 @@
if(st.running){
const htmlString = '<br/><em><%:The xunyou service is running.%></em>'
+ "<br/><br/><a class=\"btn cbi-button cbi-button-apply\" target=\"_blank\" "
+ "href=\"https://pay.xunyou.com/login/router.html?partner=koolshare&salesid=316186107&eid=10699&regfrom=router_web&lanmac="+st.lanmac+"&version=2.0.0.3\" "
+ "href=\"https://pay.xunyou.com/login/router.html?partner=koolshare&salesid=336411145&eid=10699&regfrom=router_web&lanmac="+st.lanmac+"&version=2.0.0.3\" "
+ "><%:open xunyou%></s>";
tb.innerHTML = htmlString;
}

View File

@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xunyou
PKG_VERSION:=2.0.1.5
PKG_VERSION:=2.0.1.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://partnerdownload.xunyou.com/routerplugin/koolshare/
PKG_HASH:=811d61a2c47e60c26af257061e2ee9f218006108f9f6d1fad9bde6d51a252f08
PKG_HASH:=46e300b5fa81404731d8461da51e7cd2954d424c84974908f088e12ba53d03ee
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_v$(PKG_VERSION)
@ -28,7 +28,7 @@ define Package/$(PKG_NAME)
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=xunyou
DEPENDS:=
DEPENDS:=+coreutils-nohup
endef
define Package/$(PKG_NAME)/description

View File

@ -20,7 +20,7 @@ start() {
printf "%s" "${device}"
)
[ -z "$interface" ] && interface=br-lan
sh /xunyou/xunyou_daemon.sh start -i "$interface" >/dev/null 2>&1
nohup sh /xunyou/xunyou_daemon.sh start -i "$interface" >/dev/null 2>&1
else
sh /xunyou/xunyou_daemon.sh stop >/dev/null 2>&1
fi