Add smbclient protocol

This commit is contained in:
Alexandre
2021-07-24 09:27:14 +02:00
committed by GitHub
parent 0236da714b
commit 79649c215d

View File

@@ -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