#!/bin/bash ################################################################# ### bash <(curl -fsSL https://raw.lhy.life/sptest_inst.sh) ################################################################# cat <<'EOF' > /usr/bin/sptest #!/bin/bash if [[ "$1" == "up" ]]; then echo 'curl -o /dev/null -X POST -T - https://speed.cloudflare.com/__up < /dev/urandom' curl -o /dev/null -X POST -T - https://speed.cloudflare.com/__up < /dev/urandom exit 0 fi echo 'curl -o /dev/null https://speed.cloudflare.com/__down?bytes=1048576000' curl -o /dev/null https://speed.cloudflare.com/__down?bytes=1048576000 EOF chmod +x /usr/bin/sptest