mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-26 17:26:05 +02:00
Update 00-local_mounts.sh
This commit is contained in:
@@ -6,20 +6,20 @@
|
|||||||
####################
|
####################
|
||||||
|
|
||||||
## List available Disk with Labels and Id
|
## List available Disk with Labels and Id
|
||||||
bashio::log.blue "---------------------------------------------------"
|
bashio::log.blue "---------------------------------------------------"
|
||||||
bashio::log.blue "By https://github.com/dianlight/hassio-addons "
|
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))
|
#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)
|
||||||
if [ ${#autodisks[@]} -eq 0 ]; then
|
if [ ${#autodisks[@]} -eq 0 ]; then
|
||||||
bashio::log.info "No Disk with labels."
|
bashio::log.info "No Disk with labels."
|
||||||
else
|
else
|
||||||
bashio::log.info "Available Disk Labels:"
|
bashio::log.info "Available Disk Labels:"
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
for disk in "${autodisks[@]}"; do
|
for disk in "${autodisks[@]}"; do
|
||||||
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 #
|
||||||
|
|||||||
Reference in New Issue
Block a user