mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Added FreeNAS Version support (#215)
Hi, I added FreeNAS version information support, as shown in the figure:  
This commit is contained in:
committed by
Neil Lathwood
parent
3c4511d987
commit
433d744953
@ -125,7 +125,12 @@ elif [ "${OS}" = "Darwin" ] ; then
|
||||
fi
|
||||
|
||||
elif [ "${OS}" = "FreeBSD" ] ; then
|
||||
DIST=$(cat /etc/version | cut -d'-' -f 1)
|
||||
if [ "${DIST}" = "FreeNAS" ]; then
|
||||
OSSTR=`cat /etc/version | cut -d' ' -f 1`
|
||||
else
|
||||
OSSTR=`/usr/bin/uname -mior`
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${OSSTR}
|
||||
|
Reference in New Issue
Block a user