23 lines
504 B
Bash
Executable File
23 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -d /opt/idssys/defaults ]; then
|
|
source /opt/idssys/defaults/colors.inc
|
|
source /opt/idssys/defaults/default.inc
|
|
else
|
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
|
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
|
fi
|
|
|
|
|
|
echo
|
|
echo -e "${idsCL[LightGreen]}Run All Local Speedtests${idsCL[Default]}"
|
|
echo
|
|
|
|
test=$(speedtest -L)
|
|
array = preg_split("/\r\n|\n|\r/", $test);
|
|
|
|
for item in ${array[@]}; do
|
|
echo "$item - ${array[$item]}"
|
|
done
|
|
|
|
exit 0 |