op-packages/luci-app-systools/root/usr/share/systools/speedtest.run
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

16 lines
258 B
Bash
Executable File

#!/bin/bash
cd /root
export HOME=/root
SERVER=${1}
echo "run speedtest"
if [ "$SERVER" == "auto" ]; then
echo "/usr/bin/speedtest"
echo "yes"|/usr/bin/speedtest
else
echo "/usr/bin/speedtest -s $SERVER"
echo "yes"|/usr/bin/speedtest -s $SERVER
fi