void-packages/srcpkgs/wireguard-tools/files/wireguard/run

11 lines
152 B
Bash

#!/bin/sh
exec 2>&1
set -e
for conf in /etc/wireguard/*.conf; do
[ -e "$conf" ] || continue;
wg-quick up "$conf"
done
exec chpst -b wireguard pause