From 7542bd26f4c883c7e622056a1a34909d1dc9aa2c Mon Sep 17 00:00:00 2001 From: Allison Date: Tue, 18 Sep 2018 20:20:23 -0700 Subject: [PATCH] Update distro (#194) Adding full detection for ASUSWRT-Merlin --- snmp/distro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snmp/distro b/snmp/distro index d13af06..d5bd537 100755 --- a/snmp/distro +++ b/snmp/distro @@ -97,6 +97,11 @@ elif [ "${OS}" = "Linux" ] ; then DIST="dd-wrt" fi + if [ "`uname -a | awk '{print $(NF)}'`" = "ASUSWRT-Merlin" ] ; then + DIST="ASUSWRT-Merlin" + REV=`nvram show | grep buildno= | egrep -o '[0-9].[0-9].[0-9]'` > /dev/null 2>&1 + fi + if [ -n "${REV}" ] then OSSTR="${DIST} ${REV}"