From 09829184111a7cbf0626a49aead85eb24a71c53f Mon Sep 17 00:00:00 2001 From: Shibby Date: Tue, 8 Jan 2013 13:18:01 +0100 Subject: [PATCH] TomatoAnon: generate a random clock (minutes) for interval update. --- release/src/router/others/tomatoanon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release/src/router/others/tomatoanon b/release/src/router/others/tomatoanon index e980b294ef..3a6e8ac46b 100755 --- a/release/src/router/others/tomatoanon +++ b/release/src/router/others/tomatoanon @@ -82,8 +82,12 @@ if [ "$ANON_ANSWER" == "1" ]; then #Thanks INTERVAL=`nvram get tomatoanon_cru` + + #random minutes 0..59 + MINUTES=`awk 'BEGIN {srand(); printf "%d", 60*rand()}'` + cru d tomatoanon - cru a tomatoanon "0 */$INTERVAL * * * /usr/sbin/tomatoanon" + cru a tomatoanon "$MINUTES */$INTERVAL * * * /usr/sbin/tomatoanon" else #if anon is not enabled or was disabled right now -- 2.11.4.GIT