Files
home-assistant-addons/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-connected
T
2025-06-07 07:53:27 +02:00

7 lines
269 B
Plaintext
Executable File

#!/usr/bin/with-contenv bashio
bashio::log.info "Waiting a bit for vhclient ..."
s6-sleep 15 # TODO: make it check not just wait
server_connection=$(/usr/bin/vhclient -t "GET CLIENT STATE" | awk '/<connection/{print}')
bashio::log.info "Server: ${server_connection}"