Update 00-local_mounts.sh

This commit is contained in:
Alexandre
2023-09-26 09:52:42 +02:00
committed by GitHub
parent a8c922d3f6
commit f5bc0b3bff

View File

@@ -6,20 +6,20 @@
####################
## List available Disk with Labels and Id
bashio::log.blue "---------------------------------------------------"
bashio::log.blue "By https://github.com/dianlight/hassio-addons "
#autodisks=($(lsblk -E label -n -o label | sed -r '/^\s*$/d' | grep -v hassos | grep pp))
readarray -t autodisks < <(lsblk -E label -n -o label -i | sed -r '/^\s*$/d' | grep -v hassos)
if [ ${#autodisks[@]} -eq 0 ]; then
bashio::log.info "No Disk with labels."
else
bashio::log.info "Available Disk Labels:"
# shellcheck disable=SC2046
for disk in "${autodisks[@]}"; do
bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]"
done
fi
bashio::log.blue "---------------------------------------------------"
bashio::log.blue "---------------------------------------------------"
bashio::log.blue "By https://github.com/dianlight/hassio-addons "
#autodisks=($(lsblk -E label -n -o label | sed -r '/^\s*$/d' | grep -v hassos | grep pp))
readarray -t autodisks < <(lsblk -E label -n -o label -i | sed -r '/^\s*$/d' | grep -v hassos)
if [ ${#autodisks[@]} -eq 0 ]; then
bashio::log.info "No Disk with labels."
else
bashio::log.info "Available Disk Labels:"
# shellcheck disable=SC2046
for disk in "${autodisks[@]}"; do
bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]"
done
fi
bashio::log.blue "---------------------------------------------------"
######################
# MOUNT LOCAL SHARES #