update-11.26

This commit is contained in:
github-actions[bot] 2021-11-26 09:00:59 +08:00
parent b8bd2840d0
commit 3e148f08b0
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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