dotfiles/scripts/prefix/bin/vpn

11 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