scripts/bash/usr-local-bin/nordvpn-off

18 lines
429 B
Bash
Executable File

#!/usr/bin/env bash
set -x
nordvpn set killswitch off
nordvpn set autoconnect off
nordvpn disconnect
sudo systemctl stop nordvpnd.socket
sudo systemctl stop nordvpnd.service
sudo systemctl restart yggdrasil.service
sudo systemctl restart iwd.service
sudo systemctl restart systemd-networkd.service
sleep 5
sudo systemctl restart unbound.service
sudo systemctl restart systemd-resolved.service
sleep 5
sudo chronyc online
set +x