Ready for version 1.1.2

PR for the main repository, version 1.1.2 with sms_tool as the major change
This commit is contained in:
Russel Yasol
2025-01-17 14:29:29 +08:00
parent 622d0d9361
commit 397e0de45a
139 changed files with 168 additions and 2883 deletions

View File

@@ -1,11 +0,0 @@
#!/bin/sh
export HOME=/tmp/home
# Create named pipe for speedtest output if it doesn't exist
[ ! -p /tmp/realtime_spd.json ] && mkfifo /tmp/realtime_spd.json
# Run speedtest in background
/usr/bin/speedtest --accept-license -f json -p yes --progress-update-interval=100 > /tmp/realtime_spd.json
# Remove named pipe
rm /tmp/realtime_spd.json

View File

@@ -1,13 +0,0 @@
#!/bin/sh
echo "Content-Type: text/event-stream"
echo "Cache-Control: no-cache"
echo "Connection: keep-alive"
echo ""
# Use cat to read from the FIFO
cat /tmp/realtime_spd.json | while read line; do
echo "data: $line"
echo
sleep 0.1
done

View File

@@ -1,10 +0,0 @@
#!/bin/sh
# /www/cgi-bin/start_speedtest.sh
echo "Content-Type: application/json"
echo ""
# Run speedtest in background
/www/cgi-bin/home/speedtest/speedtest.sh
# Immediately return a success response
echo '{"status":"started"}'