From f2f05f393da27cc021c4c81b035c6aa3a886a59c Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 18 Oct 2018 01:24:19 +0800 Subject: [PATCH] speedup adbyby boot speed --- package/lean/default-settings/Makefile | 2 +- package/lean/luci-app-adbyby-plus/Makefile | 2 +- .../root/usr/share/adbyby/firewall.include | 3 +++ target/linux/ramips/image/mt7621.mk | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package/lean/default-settings/Makefile b/package/lean/default-settings/Makefile index 751239a308..2db9894647 100644 --- a/package/lean/default-settings/Makefile +++ b/package/lean/default-settings/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=default-settings PKG_VERSION:=1.0 -PKG_RELEASE:=62 +PKG_RELEASE:=63 PKG_LICENSE:=GPLv3 PKG_LICENSE_FILES:=LICENSE diff --git a/package/lean/luci-app-adbyby-plus/Makefile b/package/lean/luci-app-adbyby-plus/Makefile index 02316d483e..5e5f006c36 100644 --- a/package/lean/luci-app-adbyby-plus/Makefile +++ b/package/lean/luci-app-adbyby-plus/Makefile @@ -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:=31 +PKG_RELEASE:=32 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-adbyby-plus/root/usr/share/adbyby/firewall.include b/package/lean/luci-app-adbyby-plus/root/usr/share/adbyby/firewall.include index 8cac33c72c..4dcec1e26f 100755 --- a/package/lean/luci-app-adbyby-plus/root/usr/share/adbyby/firewall.include +++ b/package/lean/luci-app-adbyby-plus/root/usr/share/adbyby/firewall.include @@ -1,5 +1,7 @@ #!/bin/sh +if [ -f /tmp/blockip.ipset ];then + adbyby_enable=$(uci get adbyby.@adbyby[0].enable) if [ $adbyby_enable -eq 1 ]; then @@ -10,4 +12,5 @@ if [ $adbyby_enable -eq 1 ]; then fi fi +fi diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index e0c2f55ad1..15fac7e5f8 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -338,7 +338,7 @@ TARGET_DEVICES += re350-v1 define Device/re6500 DTS := RE6500 DEVICE_TITLE := Linksys RE6500 - DEVICE_PACKAGES := kmod-mt76x2 wpad-basic + DEVICE_PACKAGES := -luci-app-ipsec-vpnd -luci-app-upnp kmod-mt76x2 wpad-basic zram-swap endef TARGET_DEVICES += re6500