mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
speedup adbyby plus when enable in offline wan network
This commit is contained in:
parent
12e9f1cdaf
commit
4d2c8cbf62
@ -10,7 +10,7 @@ LUCI_DEPENDS:=+adbyby +wget +ipset +coreutils +coreutils-nohup +dnsmasq-full
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_NAME:=luci-app-adbyby-plus
|
||||
PKG_VERSION:=2.0
|
||||
PKG_RELEASE:=36
|
||||
PKG_RELEASE:=37
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -43,7 +43,7 @@ local ND = SYS.exec("cat /usr/share/adbyby/dnsmasq.adblock | wc -l")
|
||||
|
||||
o = s:taboption("basic", Button, "restart")
|
||||
o.title = translate("Adbyby and Rule state")
|
||||
o.inputtitle = translate("Manually force update")
|
||||
o.inputtitle = translate("Restart Adbyby")
|
||||
o.description = translate(string.format("<strong>Lazy Rule:</strong>%s <strong> Video Rule:</strong>%s<br /><strong>Third Party Subscription Rule:</strong>%d lines <strong>User-defined Rule:</strong>%d lines", DL, DV, math.abs(NR-NU), NR))
|
||||
o.inputstyle = "reload"
|
||||
o.write = function()
|
||||
|
@ -172,9 +172,9 @@ start()
|
||||
[ ! -d "/tmp/adbyby" ] && mkdir -p /tmp/adbyby && cp -a $PROG_PATH/data /tmp/adbyby/
|
||||
mount --bind /tmp/adbyby/data $PROG_PATH/data
|
||||
fi
|
||||
/usr/share/adbyby/admem.sh >/dev/null 2>&1
|
||||
/usr/share/adbyby/admem.sh &
|
||||
else
|
||||
/usr/share/adbyby/adupdate.sh >/dev/null 2>&1
|
||||
/usr/share/adbyby/adupdate.sh &
|
||||
fi
|
||||
echo "add adbyby rules"
|
||||
add_rules
|
||||
|
Loading…
x
Reference in New Issue
Block a user