From 3e148f08b08a8d2ef937bde9c9eb4c164b013713 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 26 Nov 2021 09:00:59 +0800 Subject: [PATCH] update-11.26 --- autoshare-samba/files/20-smb | 6 ++++++ hysteria/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/autoshare-samba/files/20-smb b/autoshare-samba/files/20-smb index 5db2eca17..0d4fabf8d 100644 --- a/autoshare-samba/files/20-smb +++ b/autoshare-samba/files/20-smb @@ -7,6 +7,8 @@ # 警告:对着屏幕的哥们,我们允许你使用此脚本,但不允许你抹去作者的信息,请保留这段话。 # +[ "$(uci -q get samba4.@samba[0].autoshare)" == "1" ] && exit 0; + . /lib/functions.sh . /lib/functions/service.sh @@ -69,6 +71,7 @@ case "$ACTION" in if [ "$str" == $path ];then strr=${j#* } target=${strr%% *} + if [ "$target" != "/boot" ];then global=0 config_foreach smb_handle sambashare $target name=${target#*/mnt/} @@ -87,8 +90,11 @@ case "$ACTION" in /etc/init.d/samba4 reload return fi + fi fi done + uci -q set samba4.@samba[0].autoshare='1' + uci commit samba4 ;; remove) diff --git a/hysteria/Makefile b/hysteria/Makefile index b43a0c60b..518cc62eb 100644 --- a/hysteria/Makefile +++ b/hysteria/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hysteria -PKG_VERSION:=0.8.5 +PKG_VERSION:=0.8.6 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz