From d002502e68d7be379ea6cae6f03d149577c2e19c Mon Sep 17 00:00:00 2001 From: edrikk Date: Mon, 15 Jun 2015 12:47:34 -0400 Subject: [PATCH] Make Tomato's OS_VERSION shorter to stop SendSSDPNotify log messages As discussed in this thread: http://www.linksysinfo.org/index.php?threads/tomato-shibbys-releases.33858/page-53#post-262636 It appears that the Tomato OS_VERSION has gotten long enough, that it's causing SSDP_PACKET_MAX_LEN being larger than 512 by a few characters. This change reduces unnecessary "verbiage" at the end of the Tomato OS_VERSION string. In short, what was previously (as example): Tomato 1.28.0000 MIPSR2-130 K26AC USB AIO-64K will become Tomato MIPSR2-130 K26AC --- miniupnpd/genconfig.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index 6410c26..fafb7a3 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -73,7 +73,8 @@ fi # Tomato USB special case if [ -f ../shared/tomato_version ]; then OS_NAME=Tomato - OS_VERSION="Tomato $(cat ../shared/tomato_version)" + TOMATO_VER=`cat ../shared/tomato_version | cut -d' ' -f2,3` + OS_VERSION="Tomato $TOMATO_VER" fi ${RM} ${CONFIGFILE}