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