-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup-cli.sh
35 lines (27 loc) · 1.2 KB
/
setup-cli.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "Welcome to the Ookla Speedtest and traceroute CLI setup script!"
echo "This script will install the Ookla Speedtest CLI and"
echo "traceroute on your virtual srsUE docker container."
echo
read -p "Do you want to install traceroute? (y/n): " install_traceroute
if [ "$install_traceroute" == "y" ]; then
echo "Installing traceroute..."
docker exec -it virtual-srsue bash -c 'apt update; apt-get install traceroute'
echo "Traceroute has been installed."
echo
fi
read -p "Do you want to install the Ookla Speedtest CLI? (y/n): " install_speedtest
if [ "$install_speedtest" == "y" ]; then
echo "Installing the Ookla Speedtest CLI..."
docker exec -it virtual-srsue bash -c 'curl -s https://install.speedtest.net/app/cli/install.deb.sh | bash; apt-get install speedtest'
echo "The Ookla Speedtest CLI has been installed."
echo
fi
read -p "Do you want to test traceroute to www.unipi.it? (y/n): " test_traceroute
if [ "$test_traceroute" == "y" ]; then
echo "Testing traceroute to www.unipi.it..."
docker exec -it virtual-srsue bash -c 'timeout 5 traceroute -m 30 -w 1 www.unipi.it'
echo "Traceroute to www.unipi.it has been completed."
echo
fi
echo "Thank you for using the setup script. Have a nice day!"