From 558fb90e879cd941f4eb7a97846953c6657ad8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 26 Apr 2021 10:37:52 +0200 Subject: _workstation: Reset vpn and network on resume --- roles/_workstation/sysconf/templates/etc-apm-resume | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 roles/_workstation/sysconf/templates/etc-apm-resume (limited to 'roles/_workstation/sysconf/templates/etc-apm-resume') diff --git a/roles/_workstation/sysconf/templates/etc-apm-resume b/roles/_workstation/sysconf/templates/etc-apm-resume new file mode 100755 index 0000000..e2bd5e0 --- /dev/null +++ b/roles/_workstation/sysconf/templates/etc-apm-resume @@ -0,0 +1,7 @@ +#!/bin/sh + +sleep 3 +wg-quick down dc0 +ifconfig destroy wg0 +sh /etc/netstart iwn0 +wg-quick up dc0 -- cgit v1.2.3