Add Systemd path as trigger for service

This commit is contained in:
2023-06-03 12:54:27 +02:00
parent 513a95ec4b
commit 216702239d
3 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,6 @@
[Unit]
Description=Detect WireGuard VPN activation
[Path]
PathExists=/sys/class/net/wg0
Unit=set-ip-routes.service