This commit is contained in:
Hans Karlinius
2024-12-04 04:25:14 +01:00
parent 13e7e45e22
commit 975163ad53
3 changed files with 15 additions and 3 deletions

View File

@@ -8,6 +8,12 @@ clientid=$(echo $options | jq '.clientid | select(. != null)')
manualhub=$(echo $options | jq '.manualhub | select(. != null)')
bashio::cache.set preventconfig $preventconfig
bashio::cache.set autouse $autouse
if $preventconfig; then
bashio::log.info "Prevent updating config"
exit 0
fi
if $autofind; then
bashio::log.info "Enable General AutoFind"

View File

@@ -2,8 +2,14 @@
preventconfig=$(bashio::cache.get preventconfig)
if $preventconfig; then
bashio::log.info "Prevent config and exit"
exit0
bashio::log.info "Prevent USE device from config"
exit 0
fi
autouse=$(bashio::cache.get autouse)
if $autouse; then
bashio::log.info "AutoShare enabled, will not USE device from config"
exit 0
fi
if bashio::config.has_value 'usbdevices'; then