This commit is contained in:
Hans Karlinius
2024-12-01 05:20:27 +01:00
parent ce84af66b0
commit e56df7db03
3 changed files with 11 additions and 11 deletions
@@ -3,8 +3,7 @@
if bashio::config.has_value 'autofind'; then
autofind=($(bashio::config 'autofind'))
bashio::log.info "Set AUTOFIND hub to ${autofind}"
#if [ "${autofind}" = "true" ]; then
if $autofind; then
if [ "${autofind}" = "true" ]; then
/usr/bin/vh_edit_config General AutoFind 1
else
/usr/bin/vh_edit_config General AutoFind 0
@@ -19,13 +18,12 @@ fi
if bashio::config.has_value 'manualhub'; then
manualhub=($(bashio::config 'manualhub'))
bashio::log.info "Set HUB to ${manualhub}"
bashio::log.info "MANUAL HUB ADD,${manualhub}"
/usr/bin/vhclient -t "MANUAL HUB ADD,${manualhub}"
fi
if bashio::config.has_value 'autouse'; then
autouse=($(bashio::config 'autouse'))
bashio::log.info "Set AUTOUSE all devices to ${autouse}"
if [ "${autouse}" = "true" ]; then
bashio::log.info "AUTO USE ALL"
/usr/bin/vhclient -t "AUTO USE ALL"