This commit is contained in:
Hans Karlinius
2024-12-01 06:50:36 +01:00
parent 60554bcadc
commit b33d25d016
10 changed files with 9 additions and 9 deletions

View File

@@ -16,7 +16,3 @@ if bashio::config.has_value 'clientid'; then
bashio::log.info "Set ClientId to ${clientid}"
/usr/bin/vh_edit_config General ClientId ${clientid}
fi
#bashio::log.info "Waiting a bit for vhclient ..."
#sleep 5s
#/usr/bin/vhclient -t "GET CLIENT STATE"

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Waiting a bit for vhclient ..."
sleep 5s
/usr/bin/vhclient -t "GET CLIENT STATE"

View File

@@ -1,7 +1,4 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Starting VirtualHere Client"
exec /usr/bin/vhclient -c /config/vhclient.ini -l /dev/stdout
bashio::log.info "Waiting a bit for vhclient ..."
sleep 5s
/usr/bin/vhclient -t "GET CLIENT STATE"

View File

@@ -2,6 +2,7 @@
# Changed code from https://gist.github.com/thomedes/6201620#file-ini-sed
file="/config/vhclient.ini"
touch $file
awkconfig_update_value(){
local section="$1"