Files
home-assistant-addons/vhclient/rootfs/etc/s6-overlay/scripts/vhclient-connected
Hans Karlinius 2fe1482443 test
2024-12-04 03:21:07 +01:00

7 lines
231 B
Plaintext
Executable File

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