autosamba: fix re-mount

This commit is contained in:
LEAN-ESX 2019-10-27 22:03:01 -07:00
parent 6b164aef3e
commit fe1c9eb5c8
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=autosamba
PKG_VERSION:=1
PKG_RELEASE:=9
PKG_RELEASE:=10
PKG_ARCH:=all
include $(INCLUDE_DIR)/package.mk

View File

@ -92,7 +92,6 @@ case "$ACTION" in
auto=`uci get samba.@sambashare[$i].auto`
[ $auto = "1" ] && {
mount_dir=`uci get samba.@sambashare[$i].name`
rm -rf /mnt/$device /mnt/$mount_dir
uci delete samba.@sambashare[$i]
uci commit
/etc/init.d/samba reload