update-11.26
This commit is contained in:
parent
b8bd2840d0
commit
3e148f08b0
|
@ -7,6 +7,8 @@
|
||||||
# 警告:对着屏幕的哥们,我们允许你使用此脚本,但不允许你抹去作者的信息,请保留这段话。
|
# 警告:对着屏幕的哥们,我们允许你使用此脚本,但不允许你抹去作者的信息,请保留这段话。
|
||||||
#
|
#
|
||||||
|
|
||||||
|
[ "$(uci -q get samba4.@samba[0].autoshare)" == "1" ] && exit 0;
|
||||||
|
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
. /lib/functions/service.sh
|
. /lib/functions/service.sh
|
||||||
|
|
||||||
|
@ -69,6 +71,7 @@ case "$ACTION" in
|
||||||
if [ "$str" == $path ];then
|
if [ "$str" == $path ];then
|
||||||
strr=${j#* }
|
strr=${j#* }
|
||||||
target=${strr%% *}
|
target=${strr%% *}
|
||||||
|
if [ "$target" != "/boot" ];then
|
||||||
global=0
|
global=0
|
||||||
config_foreach smb_handle sambashare $target
|
config_foreach smb_handle sambashare $target
|
||||||
name=${target#*/mnt/}
|
name=${target#*/mnt/}
|
||||||
|
@ -87,8 +90,11 @@ case "$ACTION" in
|
||||||
/etc/init.d/samba4 reload
|
/etc/init.d/samba4 reload
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
uci -q set samba4.@samba[0].autoshare='1'
|
||||||
|
uci commit samba4
|
||||||
;;
|
;;
|
||||||
|
|
||||||
remove)
|
remove)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=hysteria
|
PKG_NAME:=hysteria
|
||||||
PKG_VERSION:=0.8.5
|
PKG_VERSION:=0.8.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
|
Loading…
Reference in New Issue