Files
PTS-Team/menu/functions/network.sh
thesammykins b85d46105c Revert "Merge pull request #31 from Pandaura/dev"
This reverts commit 619678b60b, reversing
changes made to 9ec20a91e5.
2021-11-03 08:42:27 +11:00

58 lines
1.8 KiB
Bash

#!/bin/bash
#
# Title: PGBlitz (Reference Title File)
# Author(s): Admin9705 - Deiteq
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
source /opt/plexguide/menu/functions/functions.sh
# Menu Interface
question1() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📂 System & Network Auditor
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] System & Network Benchmark - Basic
[2] System & Network Benchmark - Advanced
[3] Simple SpeedTest
[Z] Exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
# Standby
read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty
case $typed in
1)
sudo wget -qO- bench.sh | bash
echo ""
read -p '🌍 Process Complete | Press [ENTER] ' typed </dev/tty
question1
;;
2)
clear
echo ""
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a
echo ""
read -p '🌍 Process Complete | Press [ENTER] ' typed </dev/tty
question1
;;
3)
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -speed
echo ""
read -p '🌍 Process Complete | Press [ENTER] ' typed </dev/tty
question1 ;;
z) exit ;;
Z) exit ;;
*) question1 ;;
esac
}
question1