menu-l2tp.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. clear
  3. echo -e "════════════════════════════════════════════════════════════
  4. = Script Vps For Debian N Ubuntu "
  5. echo -e ""
  6. echo -e " __ __ ___ ___ ___ ___ _____ "
  7. echo -e " \ \ / /| _ \/ __|| _ ) / _ \|_ _|"
  8. echo -e " \ V / | _/\__ \| _ \| (_) | | | "
  9. echo -e " \_/ |_| |___/|___/ \___/ |_| "
  10. echo -e ""
  11. echo -e "\e[94m .----------------------------------------------------. "
  12. echo -e "\e[94m | L2TP MENU | "
  13. echo -e "\e[94m '----------------------------------------------------' "
  14. echo -e "\e[0m "
  15. echo -e "\e[1;31m* [1]\e[0m \e[1;32m: Creating L2TP Account\e[0m"
  16. echo -e "\e[1;31m* [2]\e[0m \e[1;32m: Deleting L2TP Account\e[0m"
  17. echo -e "\e[1;31m* [3]\e[0m \e[1;32m: Extending L2TP Account Active Life\e[0m"
  18. echo -e ""
  19. echo -e ""
  20. read -p " Select From Options [1-3 or x]: " menul2tp
  21. echo -e ""
  22. case $menul2tp in
  23. 1)
  24. add-l2tp
  25. ;;
  26. 2)
  27. del-l2tp
  28. ;;
  29. 3)
  30. renew-l2tp
  31. ;;
  32. x)
  33. menu
  34. ;;
  35. *)
  36. echo " Please enter an correct number!!"
  37. ;;
  38. esac