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
- PROGRAM="ipdel"
- # Name of our program
- S="sudo"
- # You will need elevated privledges to run this script
- LIST="ifconfig"
- # To show you the active running adapters
- RMV="ip link del"
- # To remove the chosen active adapter
- echo -e "\n"
- echo -e "For help about this command, please type --help\n"
- if [[ $1 == --help ]]; then
- echo -e "\nUsage: $PROGRAM <command>"
- echo -e "\nCommands are"
- echo -e " list List the currently active adapters being used by your internet"
- echo -e " rmv Remove any currently listed and active adapters being used by your internet"
- fi
- if [[ $1 == list ]]; then
- $S $LIST
- fi
- if [[ $1 == rmv ]]; then
- echo -e "Please first enter the command ipdel list, if you have already done so \ncopy and paste now the name including the number if its a tun adapter: "
- read TUN
- $S $RMV $TUN
- fi
Add Comment
Please, Sign In to add comment