aboutsummaryrefslogblamecommitdiffstats
path: root/roles/_workstation/sysconf/templates/etc-apm-resume
blob: 7680aa61f4a696e22b9fc7915d6c50f3cdb44a99 (plain) (tree)
1
2
3
4
5
            

       
 
                     








                                                                 
#!/bin/sh -x

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
remember that computers suck.