From a09ac7ec41c070acbb8c341254f99cd83ba7267a Mon Sep 17 00:00:00 2001 From: Shibby Date: Sat, 24 Nov 2012 13:19:28 +0100 Subject: [PATCH] TomatoAnon: Do not commit routerid on every launch Do this only if mismatch. --- release/src/router/others/tomatoanon | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/release/src/router/others/tomatoanon b/release/src/router/others/tomatoanon index 388b36099e..05bcc24ac4 100755 --- a/release/src/router/others/tomatoanon +++ b/release/src/router/others/tomatoanon @@ -34,8 +34,12 @@ if [ "$ANON_ANSWER" == "1" ]; then LANMAC=`nvram get lan_hwaddr` MODEL=`nvram get t_model_name` WANMAC_MD5=`echo "$WANMAC+$LANMAC" | md5sum | cut -d " " -f1` - nvram set tomatoanon_id="$WANMAC_MD5" - nvram commit + + ROUTERID=`nvram get tomatoanon_id` + if [ ! "$ROUTERID" == "$WANMAC_MD5"]; then + nvram set tomatoanon_id="$WANMAC_MD5" + nvram commit + fi #Detect Version and Buildtype KERNEL=`uname -r | cut -d "." -f1,2` -- 2.11.4.GIT