From 79649c215d3998fe476e3992f4663f58ebcf4c98 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 24 Jul 2021 09:27:14 +0200 Subject: [PATCH] Add smbclient protocol --- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh index 733199dc3..c9008b2be 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh @@ -47,6 +47,12 @@ if bashio::config.has_value 'networkdisks'; then done fi + # Test smbclient if not mounted yet + if [ $MOUNTED = false ]; then + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" && \ + bashio::log.info "Mounted with smbclient" + fi + # Messages if [ $MOUNTED = true ]; then #Test write permissions