Files
home-assistant-addons/vhclient/rootfs/etc/s6-overlay/s6-rc.d/config/run
Hans Karlinius 10b0e46fa5 test
2024-11-26 08:37:19 +01:00

22 lines
731 B
Plaintext
Executable File

#!/command/with-contenv bashio
#if bashio::config.has_value 'clientid'; then
# clientid=($(bashio::config 'clientid'))
# bashio::log.info "Set ClientId to ${clientid}"
#fi
if bashio::config.has_value 'autofind'; then
autofind=($(bashio::config 'autofind'))
bashio::log.info "Set AUTOFIND ${autofind}"
fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
#my_array=($(bashio::config 'usbdevices'))
#my_array+=('one') # Add a new item to the array
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
#bashio::config::update 'usbdevices' "${my_array[@]}"
#bashio::log.info "${my_array[@]}"
#bashio::config::update 'usbdevices' "${my_array[@]}"
#bashio::log.info "${my_array[@]}"