mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update 92-local_mounts.sh
This commit is contained in:
@@ -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 #
|
||||||
|
|||||||
Reference in New Issue
Block a user