|
|
@ -88,7 +88,7 @@ speedtest_setup() { |
|
|
|
[[ -e './st-temp/speedtest' ]] && return |
|
|
|
echo -e "正在获取Speedtest-cli...\c" |
|
|
|
mkdir -p ./st-temp/speedtest-cli |
|
|
|
wget --no-check-certificate -qO ./st-temp/speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-$(uname -m)-linux.tgz > /dev/null 2>&1 |
|
|
|
wget --no-check-certificate -qO ./st-temp/speedtest.tgz https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-$(uname -m)-linux.tgz > /dev/null 2>&1 |
|
|
|
tar zxvf ./st-temp/speedtest.tgz -C ./st-temp/speedtest-cli/ > /dev/null 2>&1 |
|
|
|
mv ./st-temp/speedtest-cli/speedtest ./st-temp/speedtest-cli/speedtest.5 ./st-temp/ |
|
|
|
chmod a+rx ./st-temp/speedtest |
|
|
@ -216,12 +216,8 @@ init() { |
|
|
|
get_server |
|
|
|
} |
|
|
|
|
|
|
|
main() { |
|
|
|
init |
|
|
|
select_isp |
|
|
|
clear |
|
|
|
runtest |
|
|
|
clear_env |
|
|
|
} |
|
|
|
|
|
|
|
main |
|
|
|
init |
|
|
|
select_isp |
|
|
|
clear |
|
|
|
runtest |
|
|
|
clear_env |
|
|
|