Update 92-local_mounts.sh

This commit is contained in:
Alexandre
2023-03-04 22:28:53 +01:00
committed by GitHub
parent b2a21f779e
commit ebab33560d

View File

@@ -5,7 +5,8 @@
# LIST LOCAL DISKS # # LIST LOCAL DISKS #
#################### ####################
function list_drives (bashio::log.info "List of available labels (@dianlight)" function list_drives () {
bashio::log.info "List of available labels (@dianlight)"
bashio::log.blue "---------------------------------------------------" bashio::log.blue "---------------------------------------------------"
#autodisks=($(lsblk -E label -n -o label | sed -r '/^\s*$/d' | grep -v hassos | grep pp)) #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) readarray -t autodisks < <(lsblk -E label -n -o label -i | sed -r '/^\s*$/d' | grep -v hassos)
@@ -17,7 +18,8 @@ else
bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]" bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]"
done done
fi fi
bashio::log.blue "---------------------------------------------------") bashio::log.blue "---------------------------------------------------"
}
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #