homeassistant-addon-repository/wireguard-client/rootfs/etc/services.d/status/run

11 lines
449 B
Plaintext
Raw Normal View History

2023-10-27 11:30:54 +00:00
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: WireGuard Client
# Shows current WireGuard status
# ==============================================================================
sleep 30
bashio::log.info "Requesting current status from WireGuard Client..."
if [[ "${__BASHIO_LOG_LEVEL}" -ge "${__BASHIO_LOG_LEVEL_INFO}" ]]; then
exec wg show
fi