From 3156e64b26c81e0e76870d29b3a0fb37ae08df9a Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sat, 3 Jun 2023 18:17:37 +0200 Subject: [PATCH] Fix previous commit: set instructions in right file... --- systemd-templates/set-ip-routes.path | 3 +++ systemd-templates/set-ip-routes.service | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/systemd-templates/set-ip-routes.path b/systemd-templates/set-ip-routes.path index c239118..fd19792 100644 --- a/systemd-templates/set-ip-routes.path +++ b/systemd-templates/set-ip-routes.path @@ -4,3 +4,6 @@ Description=Detect WireGuard VPN activation [Path] PathExists=/sys/class/net/wg0 Unit=set-ip-routes.service + +[Install] +WantedBy=default.target diff --git a/systemd-templates/set-ip-routes.service b/systemd-templates/set-ip-routes.service index 8120eb1..86e22ef 100644 --- a/systemd-templates/set-ip-routes.service +++ b/systemd-templates/set-ip-routes.service @@ -7,6 +7,3 @@ ExecStart=/usr/sbin/ip route del default dev wg0 ExecStart=/usr/sbin/ip route add PH_DNS dev wg0 ExecStart=/usr/sbin/ip route add PH_NETWORK dev wg0 ExecStart=/storage/libreelec-conf/set-resolv-conf.sh - -[Install] -WantedBy=default.target