From 95d29c699a82ba4bc1eebd6c550bd597d750fc88 Mon Sep 17 00:00:00 2001 From: Shibby Date: Sat, 24 Nov 2012 15:07:37 +0100 Subject: [PATCH] TomatoAnon: some fixes - fix cru - fix Country Name. "United States" and "United Kingdom" was identify as the same "United" country --- release/src/router/others/tomatoanon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/src/router/others/tomatoanon b/release/src/router/others/tomatoanon index 05bcc24ac4..125ec17ec1 100755 --- a/release/src/router/others/tomatoanon +++ b/release/src/router/others/tomatoanon @@ -66,7 +66,7 @@ if [ "$ANON_ANSWER" == "1" ]; then #Get country name and code wget -O /tmp/country http://api.easyjquery.com/test/demo-ip.php ISO=`cat /tmp/country | grep Country] | cut -d " " -f7` - COUNTRY=`cat /tmp/country | grep CountryName | cut -d " " -f7` + COUNTRY=`cat /tmp/country | grep CountryName | cut -d " " -f7,8,9` rm /tmp/country #Change all spaces to %20. @@ -82,7 +82,7 @@ if [ "$ANON_ANSWER" == "1" ]; then INTERVAL=`nvram get tomatoanon_cru` cru d tomatoanon - cru a tomatoanon "* */$INTERVAL * * * /usr/bin/tomatoanon" + cru a tomatoanon "0 */$INTERVAL * * * /usr/bin/tomatoanon" else #if anon is not enabled or was disabled right now -- 2.11.4.GIT