Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #__ Color headers
- RED='\033[1;31m'
- BLUE='\033[1;34m'
- YELLOW='\033[1;33m'
- PURPLE='\033[1;35m'
- WHITE='\033[1;37m'
- GREY='\033[1;30m]'
- NC='\033[0m'
- #___________________//
- #____ BANNER_______//
- function banner(){
- clear
- echo -e " ${BLUE}
- █████╗ ██████╗ ██████╗███████╗███████╗███████╗
- ██╔══██╗██╔════╝██╔════╝██╔════╝██╔════╝██╔════╝
- ███████║██║ ██║ █████╗ ███████╗███████╗
- ██╔══██║██║ ██║ ██╔══╝ ╚════██║╚════██║
- ██║ ██║╚██████╗╚██████╗███████╗███████║███████║
- ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝╚══════╝╚══════╝${NC}
- "
- sleep 0.5
- }
- #___________________
- clear
- #___________________//
- #____ FUNCTIONS ___//
- #________________________________________________//
- #____PROGRAM____________________________________//
- #fetching env variables
- banner
- id=$(echo $UID)
- current_user=$(whoami)
- #testing current user
- case "$id" in
- 0)
- echo -e " ${YELLOW}> > > ${RED}root ${NC} user confirmed"
- read -p ' name of your file (without .ovpn) : ' namefile
- openvpn $namefile.ovpn & disown
- ;;
- *)
- echo -e " ${YELLOW}> > > ${NC} please run script as root ${RED} $current_user ${NC}"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement