13 lines
417 B
Desktop File
13 lines
417 B
Desktop File
[Unit]
|
|
Description=Update IP routes after connecting to VPN
|
|
BindsTo=sys-subsystem-net-devices-wg0.device
|
|
|
|
[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=/usr/bin/bash /storage/libreelec-conf/set-dns.sh
|
|
ExecStop=/usr/bin/bash /storage/libreelec-conf/unset-dns.sh
|