mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 00:34:16 +01:00
Update 92-local_mounts.sh
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
# 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 "---------------------------------------------------"
|
||||
#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)
|
||||
@@ -17,7 +18,8 @@ else
|
||||
bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]"
|
||||
done
|
||||
fi
|
||||
bashio::log.blue "---------------------------------------------------")
|
||||
bashio::log.blue "---------------------------------------------------"
|
||||
}
|
||||
|
||||
######################
|
||||
# MOUNT LOCAL SHARES #
|
||||
|
||||
Reference in New Issue
Block a user