release New version 2.0.3.6 (#60)

This commit is contained in:
1163167506 2024-01-12 16:50:16 +08:00 committed by GitHub
parent faf9ea6fff
commit 6b492d2611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xunyou
PKG_VERSION:=2.0.2.4
PKG_VERSION:=2.0.3.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://partnerdownload.xunyou.com/routerplugin/koolshare/
PKG_HASH:=fdf54c4dcee8b67ddb125a011255c35273b27f926db982e41ccbbe7e67a7ac6a
PKG_HASH:=9ee6fd35ad9a8dc491457f42f08dae1d489d4247254421388bde8ea12c4eb63d
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_v$(PKG_VERSION)

View File

@ -29,3 +29,21 @@ start() {
stop() {
sh /xunyou/xunyou_daemon.sh stop >/dev/null 2>&1
}
reload() {
config_load xunyou
config_foreach get_config xunyou
if [ $enabled == 1 ]; then
local interface=$(
. /lib/functions/network.sh
network_is_up "$XUNYOU_IFACE" || exit 0
network_get_device device "$XUNYOU_IFACE"
printf "%s" "${device}"
)
[ -z "$interface" ] && interface=br-lan
nohup sh /xunyou/xunyou_daemon.sh restart -i "$interface" >/dev/null 2>&1
else
sh /xunyou/xunyou_daemon.sh stop >/dev/null 2>&1
fi
}