From 294eab64a4e0a79df3a96f5d1799d7e948a12e58 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 1 Oct 2023 23:15:05 +0200 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index ec2a19ec0..138a697c6 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -92,13 +92,16 @@ if bashio::config.has_value 'networkdisks'; then # Deeper analysis if failed if [ "$MOUNTED" = false ]; then - + + # Detect smb version # Try smbv1 if smbclient -t 2 -L "$server" -m NT1 -N &>/dev/null; then echo "... only SMBv1 is supported, trying it" SMBDEFAULT=",vers=1.0" fi + # Detect sec vers + # if Fail test different smb and sec versions echo "... looking for the optimal parameters for mounting" if [ "$MOUNTED" = false ]; then