Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## COLOURS
- greenColour="\e[0;32m"
- endColour="\033[0m\e[0m"
- redColour="\e[0;31m"
- blueColour="\e[0;34m"
- yellowColour="\e[0;33m"
- purpleColour="\e[0;35m"
- turquoiseColour="\e[0;36m"
- grayColour="\e[0;37m"
- ## BOLD COLOURS
- BgreenColour="\e[1;32m"
- BendColour="\033[0m\e[0m"
- BredColour="\e[1;31m"
- BblueColour="\e[1;34m"
- ByellowColour="\e[1;33m"
- BpurpleColour="\e[1;35m"
- BturquoiseColour="\e[1;36m"
- BgrayColour="\e[1;37m"
- if [ $(id -u) != 0 ];then
- echo -e "\n${BredColour}[!] Run the script with root privileges!!!${endColour}\n"
- exit 1
- fi
- if [ "$1" == "c" ];then
- openvpn /home/user/Vpn/vpn.ovpn &>/dev/null & disown
- elif [ "$1" == "d" ];then
- pkill openvpn
- else
- echo -e "\n${BgreenColour}[~]${endColour}${grayColour} Usage:${endColour}"
- echo -e "\t ${BpurpleColour}$0${endColour}${BgreenColour} [c]${endColour}${greenColour}onnect${endColour}${BredColour} [d]${endColour}${redColour}isconnect${endColour}\n"
- fi
Advertisement
Add Comment
Please, Sign In to add comment