Fix previous commit: set instructions in right file...

This commit is contained in:
Alexandre CATTEAU 2023-06-03 18:17:37 +02:00
parent b4fb985c72
commit 3156e64b26
2 changed files with 3 additions and 3 deletions

View File

@ -4,3 +4,6 @@ Description=Detect WireGuard VPN activation
[Path]
PathExists=/sys/class/net/wg0
Unit=set-ip-routes.service
[Install]
WantedBy=default.target

View File

@ -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