mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Use values for CIFS vers from the mount.cifs man page.
This commit is contained in:
@@ -33,7 +33,9 @@ function check_archive_mountable () {
|
|||||||
|
|
||||||
if [ "$mount_failed" = true ]
|
if [ "$mount_failed" = true ]
|
||||||
then
|
then
|
||||||
echo "STOP: The archive couldn't be mounted with CIFS version ${cifs_version}. Try specifying a lower number for the CIFS version like this: export cifs_version=2"
|
echo "STOP: The archive couldn't be mounted with CIFS version ${cifs_version}. Try specifying a lower number for the CIFS version like this:"
|
||||||
|
echo " export cifs_version=2.1"
|
||||||
|
echo "Other versions you can try are 2.0 and 1.0"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ else # Else for now, TODO allow both for more redundancy?
|
|||||||
check_variable "shareuser"
|
check_variable "shareuser"
|
||||||
check_variable "sharepassword"
|
check_variable "sharepassword"
|
||||||
|
|
||||||
export cifs_version="${cifs_version:-3}"
|
export cifs_version="${cifs_version:-3.0}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_variable "archiveserver"
|
check_variable "archiveserver"
|
||||||
|
|||||||
Reference in New Issue
Block a user