From 5c2e3443bedf0ef6a34888ea30361af7da314748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 4 Dec 2021 14:01:47 +0000 Subject: roles: Add workstation role --- roles/workstation/templates/apm-resume | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 roles/workstation/templates/apm-resume (limited to 'roles/workstation/templates/apm-resume') diff --git a/roles/workstation/templates/apm-resume b/roles/workstation/templates/apm-resume new file mode 100755 index 0000000..18397b4 --- /dev/null +++ b/roles/workstation/templates/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 -- cgit v1.2.3