mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
nordvpn-off: handle unexisting unbound-control, resolvectl and chronyc
This commit is contained in:
parent
443299c906
commit
ae01035108
@ -32,9 +32,13 @@ sudo systemctl restart NetworkManager.service
|
|||||||
# at the VPN.
|
# at the VPN.
|
||||||
sleep 5
|
sleep 5
|
||||||
#sudo systemctl restart unbound.service
|
#sudo systemctl restart unbound.service
|
||||||
|
if hash unbound-control 2> /dev/null; then
|
||||||
sudo unbound-control reload
|
sudo unbound-control reload
|
||||||
|
fi
|
||||||
#sudo systemctl restart systemd-resolved.service
|
#sudo systemctl restart systemd-resolved.service
|
||||||
|
if hash resolvectl 2> /dev/null; then
|
||||||
sudo resolvectl flush-caches
|
sudo resolvectl flush-caches
|
||||||
|
fi
|
||||||
#sleep 5
|
#sleep 5
|
||||||
|
|
||||||
# Yggdrasil needs IPv6
|
# Yggdrasil needs IPv6
|
||||||
@ -42,8 +46,9 @@ sudo systemctl restart yggdrasil.service
|
|||||||
|
|
||||||
# The NTP server will now have access to IPv6 sources, possibly local NTP
|
# The NTP server will now have access to IPv6 sources, possibly local NTP
|
||||||
# servers as well.
|
# servers as well.
|
||||||
|
if hash chronyc 2> /dev/null; then
|
||||||
sudo chronyc online
|
sudo chronyc online
|
||||||
|
fi
|
||||||
# Tor will complain of IP address change and failing guards during
|
# Tor will complain of IP address change and failing guards during
|
||||||
# disconnection.
|
# disconnection.
|
||||||
sudo systemctl restart tor.service
|
sudo systemctl restart tor.service
|
||||||
|
Loading…
Reference in New Issue
Block a user