mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2024-01-12 18:32:36
This commit is contained in:
parent
18cedd26dc
commit
f41279f4ab
@ -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)
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user