blob: 686f7e14f6e07c618ec0c7a79022a1cf78d4bb9d (
plain) (
tree)
|
|
#!/bin/sh
# Managed by Ansible
set -x -e
sleep 3
sh /etc/netstart iwn0
wg_interfaces=$(find /etc/wireguard -type f | sed 's/\.conf$//g')
for wg_interface in ${wg_interfaces}; do
wg_interface=$(basename "${wg_interface}")
wg-quick down "${wg_interface}"
wg-quick up "${wg_interface}"
done
rcctl -d restart pcscd
|