This commit is contained in:
Hans Karlinius
2024-11-29 04:58:03 +01:00
parent f843da672c
commit 4db2ff9969
3 changed files with 9 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.218"
version: "0.1.219"
slug: vhclient
description: VirtualHere Client
arch:

View File

@@ -18,14 +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 < <(sed 's/:/ /g' <<< /usr/bin/vhclient -t LIST)
for device in "${devices[@]}"; do
#mapfile -t devices < <(sed 's/:/ /g' <<< /usr/bin/vhclient -t LIST)
#for device in "${devices[@]}"; do
#if [[ "$device" =~ .*"-->".* ]]; then
bashio::log.info "${device}"
# bashio::log.info "${device}"
#fi
done
#done

View File

@@ -0,0 +1,3 @@
#!/command/with-contenv bashio
/usr/bin/vhclient -t LIST | grep '-->'