let ssr plus can flush 500 severs at one-click

This commit is contained in:
coolsnowwolf 2018-10-23 21:04:51 +08:00
parent c15e4e9017
commit 4081ff02f4
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus
LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=28
PKG_RELEASE:=29
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -41,7 +41,7 @@ o = s:option(Button,"delete",translate("Delete all severs"))
o.inputstyle = "reset"
o.write = function()
luci.sys.call("nohup bash /usr/share/shadowsocksr/delservers.sh > /tmp/subupdate.log 2>&1 &")
luci.sys.call("sleep 3")
luci.sys.call("sleep 5")
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "servers"))
end

View File

@ -1,6 +1,6 @@
#!/bin/bash
for((i=1;i<=200;i++));
for((i=1;i<=500;i++));
do
uci delete shadowsocksr.@servers[$1] >/dev/null 2>&1
done