1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix for packages updates and versions updates

This commit is contained in:
Ycarus 2018-05-23 10:56:23 +02:00
parent 51ad144788
commit 4c781208a1
14 changed files with 145 additions and 116 deletions

View file

@ -2,22 +2,24 @@
NBCPU=$(grep -c '^processor' /proc/cpuinfo | tr -d "\n")
if [ "$NBCPU" -gt 2 ]; then
for c in $(seq 3 $NBCPU); do
uci -q batch <<-EOF >/dev/null
set shadowsocks-libev.hi$c=ss_redir
set shadowsocks-libev.hi$c.server=sss0
set shadowsocks-libev.hi$c.local_address="0.0.0.0"
set shadowsocks-libev.hi$c.local_port=1100
set shadowsocks-libev.hi$c.mode=tcp_and_udp
set shadowsocks-libev.hi$c.timeout=60
set shadowsocks-libev.hi$c.fast_open=1
set shadowsocks-libev.hi$c.reuse_port=1
set shadowsocks-libev.hi$c.mptcp=1
set shadowsocks-libev.hi$c.verbose=0
commit shadowsocks-libev
EOF
rm -f /tmp/luci-indexcache
done
if [ "$(uci -q get shadowsocks-libev.hi2)" = "" ]; then
for c in $(seq 3 $NBCPU); do
uci -q batch <<-EOF >/dev/null
set shadowsocks-libev.hi$c=ss_redir
set shadowsocks-libev.hi$c.server=sss0
set shadowsocks-libev.hi$c.local_address="0.0.0.0"
set shadowsocks-libev.hi$c.local_port=1100
set shadowsocks-libev.hi$c.mode=tcp_and_udp
set shadowsocks-libev.hi$c.timeout=60
set shadowsocks-libev.hi$c.fast_open=1
set shadowsocks-libev.hi$c.reuse_port=1
set shadowsocks-libev.hi$c.mptcp=1
set shadowsocks-libev.hi$c.verbose=0
commit shadowsocks-libev
EOF
rm -f /tmp/luci-indexcache
done
fi
fi
exit 0