This commit is contained in:
Hans Karlinius
2024-11-30 01:49:10 +01:00
parent 03f0cfe4e5
commit f00b48daf9
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.244" version: "0.1.245"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch:
@@ -1,5 +1,5 @@
#!/command/with-contenv bashio #!/command/with-contenv bashio
set -x #set -x
#test=($(bashio::config 'test')) #test=($(bashio::config 'test'))
#test+=('one', 'two') #test+=('one', 'two')
@@ -18,10 +18,11 @@ set -x
#bashio::log.info "${list1}" #bashio::log.info "${list1}"
#bashio::log.info "${list2}" #bashio::log.info "${list2}"
options=$(bashio::addon.options)
#mapfile -t devices < <(/usr/bin/vhclient -t LIST) #mapfile -t devices < <(/usr/bin/vhclient -t LIST)
mapfile -t devices < <(/usr/bin/vh_list_devices) mapfile -t devices < <(/usr/bin/vh_list_devices)
for device in "${devices[@]}"; do for device in "${devices[@]}"; do
options=$(bashio::addon.options)
bashio::log.info "Options: ${options}"
if [[ ! " ${options}.usbdevices[*] " =~ [[:space:]]${device}[[:space:]] ]]; then if [[ ! " ${options}.usbdevices[*] " =~ [[:space:]]${device}[[:space:]] ]]; then
bashio::log.info "Adding to config: ${device}" bashio::log.info "Adding to config: ${device}"