dotfiles/scripts/prefix/bin/vpn
2017-02-10 18:41:08 +01:00

14 lines
217 B
Bash
Executable file

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