mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 20:55:13 +08:00
update 2026-10-07 11:52:44
This commit is contained in:
1 parent
d6cc6efa77
commit
617f7ca2a6
4898 files changed
-1713675
No files matched your search
@@ -1,4 +0,0 @@
|
||||
|
||||
config speedtest-web 'config'
|
||||
option enabled '1'
|
||||
option port '8989'
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=90
|
||||
STOP=10
|
||||
|
||||
enabled="$(uci get speedtest-web.config.enabled)"
|
||||
port="$(uci get speedtest-web.config.port)"
|
||||
|
||||
start() {
|
||||
stop
|
||||
[ "$enabled" == "1" ] || exit 0
|
||||
speedtest-web \
|
||||
--listen_port "${port}" \
|
||||
>/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall speedtest-web >/dev/null 2>&1
|
||||
}
|
||||
Reference in new issue
Block a user