speedup adbyby plus when enable in offline wan network

This commit is contained in:
coolsnowwolf 2018-10-21 19:14:13 +08:00
parent 12e9f1cdaf
commit 4d2c8cbf62
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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>&nbsp;&nbsp;Video Rule</strong>%s<br /><strong>Third Party Subscription Rule</strong>%d lines&nbsp;&nbsp;<strong>User-defined Rule</strong>%d lines", DL, DV, math.abs(NR-NU), NR))
o.inputstyle = "reload"
o.write = function()

View File

@ -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