From 1f81b07d86c261ee2ed2a136e7f04cc29c5be770 Mon Sep 17 00:00:00 2001 From: "Gregory L. Dietsche" Date: Tue, 9 Mar 2021 21:34:24 -0600 Subject: [PATCH] safe-search: check for changed IP addresses weekly The current default of hourly is too fast. Some services such as DuckDuckGo return IPs from a pool based on the user's location instead of a fixed IP address. This change prevents unnecessary writes to the flash memory by only updating once per week. Signed-off-by: Gregory L. Dietsche (cherry picked from commit 7164ccf1553a990d8823bc545d970334fa0cd32e) --- net/safe-search/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/safe-search/Makefile b/net/safe-search/Makefile index 193d629dca..9c0126287a 100644 --- a/net/safe-search/Makefile +++ b/net/safe-search/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=safe-search PKG_VERSION:=2.0.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=MIT PKG_MAINTAINER:=Gregory L. Dietsche @@ -54,7 +54,7 @@ endef define Package/safe-search/postinst #!/bin/sh if [ -z "$${IPKG_INSTROOT}" ]; then - echo "0 * * * * /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root + echo "1 1 * * 1 /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root /etc/init.d/cron restart fi exit 0 -- 2.30.2