Update run

This commit is contained in:
shee-git 2024-03-30 10:37:18 +09:00 committed by GitHub
parent fd6aa2deaf
commit 4a82909247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,21 +3,3 @@
# Home Assistant Community Add-on: WireGuard # Home Assistant Community Add-on: WireGuard
# Runs WireGuard # Runs WireGuard
# ============================================================================== # ==============================================================================
declare interface
s6-svc -O /run/service/wireguard
bashio::log.info "Starting WireGuard..."
# This is alpha software. We need to set this to instruct
# WireGuard we are OK to go.
export WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1
# Get the interface
interface="wg0"
if bashio::config.has_value "server.interface"; then
interface=$(bashio::config "server.interface")
fi
# Run the WireGuard
exec wg-quick up "${interface}"