mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix
This commit is contained in:
parent
03b8e9a6cf
commit
6cedb31490
9 changed files with 29 additions and 40 deletions
7
openmptcprouter/files/bin/omr-test-speed
Executable file
7
openmptcprouter/files/bin/omr-test-speed
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
|
||||
|
||||
HOST="proof.ovh.net"
|
||||
|
||||
trap : HUP INT TERM
|
||||
curl http://$HOST/files/10Gio.dat >/dev/null || echo
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
|
||||
|
||||
HOST="proof.ovh.net"
|
||||
|
||||
_ipt() {
|
||||
iptables -w -t nat "$1" socks_emitted_by_myself \
|
||||
-d "$HOST" -j socks_redir -m comment --comment "Test download proof"
|
||||
}
|
||||
|
||||
_chain_exists() {
|
||||
iptables -w -t nat -nL "$1" 1>/dev/null 2>/dev/null
|
||||
}
|
||||
|
||||
if ! _chain_exists "socks_emitted_by_myself" || ! _chain_exists "socks_redir"; then
|
||||
echo "Couldn't find the iptables chain to plug myself into. Is ss-redir running?"
|
||||
return 1
|
||||
fi
|
||||
|
||||
trap : HUP INT TERM
|
||||
|
||||
_ipt -A
|
||||
curl http://$HOST/files/10Gio.dat >/dev/null || echo
|
||||
_ipt -D
|
11
openmptcprouter/files/etc/uci-defaults/1950-omr
Executable file
11
openmptcprouter/files/etc/uci-defaults/1950-omr
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set luci.diag.ping=openmptcprouter.com
|
||||
set luci.diag.dns=openmptcprouter.com
|
||||
set luci.diag.route=openmptcprouter.com
|
||||
commit luci
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue