Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::
- #:: ::
- #:: QUICK AND EASY COMMAND TO GE RID OF ANY REMAINING OLD tun# ADAPTERS FROM openvpn COMMAND LINE ::
- #:: ::
- #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- # ImPerial TeK. Solutions (ITS)
- # Copyright (C) 2018 v1ral <ImPerialTeKSolutions@outlook.com
- #!/bin/bash
- ####################################
- # VARIABLES IN ALL CAPS HERE FIRST #
- ####################################
- # Console colors
- W='\033[0m' # white (normal)
- R='\033[31m' # red
- G='\033[32m' # green
- O='\033[33m' # orange
- B='\033[34m' # blue
- P='\033[35m' # purple
- C='\033[36m' # cyan
- GR='\033[37m' # gray
- TAB=$( printf "\t" )
- ##############################################################################################
- # BEGIN SCRIPT MULTIPLE OPTIONS PROMPTS ETC EASY SAFETY ROOT COMMANDS AND HELPFUL SMALL LIST #
- ##############################################################################################
- echo -e $C"`busybox > cmds.$$`"
- read -p "See A Short Helpful List Of Avaliable Commands (y/n):" LSK
- if [[ $LSK == y ]]; then
- cat cmds.$$
- fi
- rm -R cmds.$$
- msg=$(kdialog --title "Any Sudo Commands" --inputbox "Enter Your Command(s) here:" )
- notify-send "Sudo $msg Will Be Executed" -i face-smile
- sudo $msg
- echo -e $GR"Command=$TAB[ $msg ]"
- echo -e $B"Done!"
- echo -e $O"As A Precaution, Please Make Sure You Want To Execute This Root Command, Please Hit [E]nter After [y]or[n] \n$TAB You May Do This Quickly: \nNow:"
- echo -e $C"$TAB $TAB Execute another command? [y]or[no]"
- read TGH
- if [[ $TGH == y ]]; then
- cmd
- fi
- echo -e "Current Working Directory Is: \nDirectory=`pwd`"
- echo -e $R"Goodbye!"
- echo -e $B"Shell Scripting Solutions To Make Your Life Easier: 2018 TM v1ral <ImPerialTeKSolutions@outlook.com>"
- date
- #######
- # END #
- #######
Add Comment
Please, Sign In to add comment