mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-01 14:02:41 +02:00
Update 00-local_mounts.sh
This commit is contained in:
@@ -9,13 +9,6 @@ fi
|
|||||||
|
|
||||||
bashio::log.notice "This script is used to mount local USB/SATA/SD/NVMe drives. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Mounting-Local-Drives-in-Addons"
|
bashio::log.notice "This script is used to mount local USB/SATA/SD/NVMe drives. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Mounting-Local-Drives-in-Addons"
|
||||||
|
|
||||||
######################
|
|
||||||
# MOUNT LOCAL SHARES #
|
|
||||||
######################
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
|
||||||
if bashio::config.has_value 'localdisks'; then
|
|
||||||
|
|
||||||
# Available devices
|
# Available devices
|
||||||
blkid | awk '{print substr($1, 0, length($1) - 1)}' | awk -F'/' '{print $NF}' > availabledisks
|
blkid | awk '{print substr($1, 0, length($1) - 1)}' | awk -F'/' '{print $NF}' > availabledisks
|
||||||
echo "NAME" >> availabledisks
|
echo "NAME" >> availabledisks
|
||||||
@@ -33,6 +26,13 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
bashio::log.green "Inspired from : github.com/dianlight"
|
bashio::log.green "Inspired from : github.com/dianlight"
|
||||||
bashio::log.blue "---------------------------------------------------"
|
bashio::log.blue "---------------------------------------------------"
|
||||||
|
|
||||||
|
######################
|
||||||
|
# MOUNT LOCAL SHARES #
|
||||||
|
######################
|
||||||
|
|
||||||
|
# Mount local Share if configured
|
||||||
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
echo "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user