diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-08-26 10:51:22 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-08-26 10:51:22 +0200 |
commit | 3c5475ed9d33ba8a29fcc8f5c4062982350352b4 (patch) | |
tree | 671f8a6fe173f46c40d5443851a0c3bd24525817 /roles/workstation/templates/_openbsd/apm-resume | |
parent | 96f588ad32285aad6d182ed4cd255c10d518b790 (diff) | |
download | infrastructure-3c5475ed9d33ba8a29fcc8f5c4062982350352b4.tar.gz |
OpenBSD update
Diffstat (limited to 'roles/workstation/templates/_openbsd/apm-resume')
-rwxr-xr-x | roles/workstation/templates/_openbsd/apm-resume | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/workstation/templates/_openbsd/apm-resume b/roles/workstation/templates/_openbsd/apm-resume new file mode 100755 index 0000000..18397b4 --- /dev/null +++ b/roles/workstation/templates/_openbsd/apm-resume @@ -0,0 +1,16 @@ +#!/bin/sh + +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 |