libreelec-conf/systemd-templates/set-ip-routes.service

11 lines
306 B
Desktop File

[Unit]
Description=Update IP routes after connecting to VPN
[Service]
Type=oneshot
RemainAfterExit=yes
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