dotfiles/scripts/prefix/bin/vpn
2017-02-23 17:24:06 +01:00

10 lines
195 B
Bash
Executable file

#!/bin/sh
sudo systemctl stop openvpn-client@DeathStar.service
if [[ $1 = "on" ]]
then
sudo systemctl start openvpn-client@DeathStar.service
echo "VPN started"
else
echo "All stopped."
fi