mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
OSX Server Distro detection by Shil (http://www.observium.org/forum/index.php/topic,79.0.html)
git-svn-id: http://www.observium.org/svn/observer/trunk@1727 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -51,6 +51,10 @@ GetVersionFromFile()
|
||||
fi
|
||||
# OSSTR="${OS} ${DIST} ${REV}(${PSUEDONAME} ${KERNEL} ${MACH})"
|
||||
OSSTR="${DIST} ${REV}"
|
||||
elif [ "${OS}" = "Darwin" ] ; then
|
||||
if [ -f /usr/bin/sw_vers ] ; then
|
||||
OSSTR=`/usr/bin/sw_vers|grep -v Build|sed 's/^.*:.//'| tr "\n" ' '`
|
||||
fi
|
||||
fi
|
||||
echo ${OSSTR}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user