void-packages/srcpkgs/wireguard-tools/files/wireguard/run
classabbyamp 351646d5bd *: add exec 2>&1 to all existing services
except when it already exists, of course
2023-02-09 21:36:13 -05:00

10 lines
152 B
Bash
Executable file

#!/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