1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Update distro (#194)

Adding full detection for ASUSWRT-Merlin
This commit is contained in:
Allison
2018-09-18 20:20:23 -07:00
committed by Tony Murray
parent 7c173b160c
commit 7542bd26f4

View File

@ -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}"