This commit is contained in:
Hans Karlinius
2024-12-04 03:21:07 +01:00
parent 1206af3fbe
commit 2fe1482443
3 changed files with 4 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ 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-env preventconfig=$preventconfig
if $autofind; then
bashio::log.info "Enable General AutoFind"
/usr/bin/vh_editini General AutoFind 1

View File

@@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Waiting a bit for vhclient ..."
sleep 5s
s6-sleep 5
server_connection=$(/usr/bin/vhclient -t "GET CLIENT STATE" | awk '/<connection/{print}')
bashio::log.info "Server: ${server_connection}"