This commit is contained in:
Hans Karlinius
2024-11-29 15:01:19 +01:00
parent bddddd1127
commit 510bac4dfd

View File

@@ -18,13 +18,14 @@ set -x
#bashio::log.info "${list1}"
#bashio::log.info "${list2}"
#options=$(bashio::addon.options)
options=$(bashio::addon.options)
#mapfile -t devices < <(/usr/bin/vhclient -t LIST)
mapfile -t devices < <(/usr/bin/vh_list_devices)
for device in "${devices[@]}"; do
#if [[ "$device" =~ .*"-->".* ]]; then
if [[ ! " ${options[*]} " =~ [[:space:]]${device}[[:space:]] ]]; then
bashio::log.info "${device}"
#fi
fi
done