mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-16 22:01:48 +02:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -92,13 +92,16 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Deeper analysis if failed
|
# Deeper analysis if failed
|
||||||
if [ "$MOUNTED" = false ]; then
|
if [ "$MOUNTED" = false ]; then
|
||||||
|
|
||||||
|
# Detect smb version
|
||||||
# Try smbv1
|
# Try smbv1
|
||||||
if smbclient -t 2 -L "$server" -m NT1 -N &>/dev/null; then
|
if smbclient -t 2 -L "$server" -m NT1 -N &>/dev/null; then
|
||||||
echo "... only SMBv1 is supported, trying it"
|
echo "... only SMBv1 is supported, trying it"
|
||||||
SMBDEFAULT=",vers=1.0"
|
SMBDEFAULT=",vers=1.0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Detect sec vers
|
||||||
|
|
||||||
# if Fail test different smb and sec versions
|
# if Fail test different smb and sec versions
|
||||||
echo "... looking for the optimal parameters for mounting"
|
echo "... looking for the optimal parameters for mounting"
|
||||||
if [ "$MOUNTED" = false ]; then
|
if [ "$MOUNTED" = false ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user