Add smbclient protocol

This commit is contained in:
Alexandre authored and GitHub committed 2021-07-24 09:27:14 +02:00
1 parent 0236da714b
commit 79649c215d
1 file changed
+6
@@ -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