This commit is contained in:
Hans Karlinius
2024-12-04 03:06:55 +01:00
parent 7deb594967
commit 436e659a16
2 changed files with 4 additions and 1 deletions

View File

@@ -1,11 +1,14 @@
#!/command/with-contenv bashio
options=$(bashio::api.supervisor GET "/addons/self/options/config")
preventconfig=$(echo $options | jq '. | if .preventconfig then true else false end')
autofind=$(echo $options | jq '. | if .autofind then true else false end')
autouse=$(echo $options | jq '. | if .autouse then true else false end')
clientid=$(echo $options | jq '.clientid | select(. != null)')
manualhub=$(echo $options | jq '.manualhub | select(. != null)')
s6-rc set preventconfig $preventconfig
if $autofind; then
bashio::log.info "Enable General AutoFind"
/usr/bin/vh_editini General AutoFind 1