This commit is contained in:
Hans Karlinius
2024-11-27 11:33:54 +01:00
parent 7b6c903eda
commit 595b433d9d
4 changed files with 39 additions and 8 deletions

View File

@@ -3,8 +3,11 @@
if bashio::config.has_value 'autofind'; then
autofind=($(bashio::config 'autofind'))
bashio::log.info "Set AUTOFIND hub to ${autofind}"
# TODO: check before toggle
/usr/bin/vhclient -t "AUTOFIND"
if [ "${autofind}" = "true" ]; then
/usr/bin/vhconfig_edit General AutoFind 1
else
/usr/bin/vhconfig_edit General AutoFind 0
fi
fi
if bashio::config.has_value 'manualhub'; then