let ssr plus can flush 500 severs at one-click
This commit is contained in:
parent
c15e4e9017
commit
4081ff02f4
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user