diff --git a/rel/overlays/bin/bootstrap b/rel/overlays/bin/bootstrap index 40980774a..941a13f1d 100755 --- a/rel/overlays/bin/bootstrap +++ b/rel/overlays/bin/bootstrap @@ -11,6 +11,10 @@ setup_interface() { + if [ ! -d "/sys/class/net/${WIREGUARD_INTERFACE_NAME}" ]; then + ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard + fi + ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard if [ "$WIREGUARD_IPV4_ENABLED" = "true" ]; then