This commit is contained in:
Hans Karlinius
2024-11-29 14:58:10 +01:00
parent 79b77f11b6
commit bddddd1127
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.220" version: "0.1.229"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -20,12 +20,12 @@ set -x
#options=$(bashio::addon.options) #options=$(bashio::addon.options)
#mapfile -t devices < <(/usr/bin/vhclient -t LIST) #mapfile -t devices < <(/usr/bin/vhclient -t LIST)
#mapfile -t devices < <(sed 's/:/ /g' <<< /usr/bin/vhclient -t LIST) mapfile -t devices < <(/usr/bin/vh_list_devices)
#for device in "${devices[@]}"; do for device in "${devices[@]}"; do
#if [[ "$device" =~ .*"-->".* ]]; then #if [[ "$device" =~ .*"-->".* ]]; then
# bashio::log.info "${device}" bashio::log.info "${device}"
#fi #fi
#done done
+1 -1
View File
@@ -1,3 +1,3 @@
#!/command/with-contenv bashio #!/command/with-contenv bashio
/usr/bin/vhclient -t LIST | grep '-->' /usr/bin/vhclient -t list|awk '{ if ($1 ~ /-->/) { print substr($0, 8, index($0, ")") - 7 ) } }'