From 97d713b332361167f86d0a1dac4d37f5b4361ed3 Mon Sep 17 00:00:00 2001 From: JohnsonRan Date: Tue, 17 Dec 2024 21:52:10 +0800 Subject: [PATCH] luci-app-cifs-mount: fix CIFS mount from Synology --- applications/luci-app-cifs-mount/Makefile | 2 +- applications/luci-app-cifs-mount/root/etc/init.d/cifs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/luci-app-cifs-mount/Makefile b/applications/luci-app-cifs-mount/Makefile index cec2db5b19b..44cbae424da 100644 --- a/applications/luci-app-cifs-mount/Makefile +++ b/applications/luci-app-cifs-mount/Makefile @@ -12,7 +12,7 @@ LUCI_PKGARCH:=all PKG_NAME:=luci-app-cifs-mount PKG_VERSION:=1 -PKG_RELEASE:=7 +PKG_RELEASE:=8 include ../../luci.mk diff --git a/applications/luci-app-cifs-mount/root/etc/init.d/cifs b/applications/luci-app-cifs-mount/root/etc/init.d/cifs index 0089a767ebc..f486c438e72 100755 --- a/applications/luci-app-cifs-mount/root/etc/init.d/cifs +++ b/applications/luci-app-cifs-mount/root/etc/init.d/cifs @@ -42,8 +42,8 @@ mount_natshare() { config_get smbver $1 smbver mkdir -p $natpath && chmod 777 $natpath - #echo "mount -t cifs -o vers=$smbver,user=$users,password=$pwd,iocharset=$iocharset,$agm //$server/$name $natpath" - mount -t cifs -o vers=$smbver,user=$users,password=$pwd,iocharset=$iocharset,$agm //$server/$name $natpath + #echo "mount -t cifs -o vers=$smbver,user=$users,username=$users,pass=$pwd,password=$pwd,iocharset=$iocharset,$agm //$server/$name $natpath" + mount -t cifs -o vers=$smbver,user=$users,username=$users,pass=$pwd,password=$pwd,iocharset=$iocharset,$agm //$server/$name $natpath } start() {