#!/usr/bin/env bash # Ping all known hosts, as it seems that the wireguard interface comes up when # only after it gets used on the machine itself. while read -r addr; do ping -c 1 -q -w 1 "$addr" & done < <(awk -F= '/vpn-wireguard.ip/ { print $NF }' /etc/bashtard/hosts.d/*) wait