24 lines
523 B
Bash
Executable File
24 lines
523 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)
|
|
test2=(${test//$'\n'/ })
|
|
|
|
for item in ${test2[@]}; do
|
|
re='^[[:digit:]]{4,6}$'
|
|
[[ $item =~ $re ]] && echo "$item - $item"
|
|
done
|
|
|
|
exit 0 |