mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix distro detection script for 'SUSE LINUX Enterprise Server 9 (x86_64) 3' which has lsb-release but not with that info
git-svn-id: http://www.observium.org/svn/observer/trunk@1208 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -42,8 +42,12 @@ GetVersionFromFile()
|
||||
DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]"
|
||||
fi
|
||||
if [ -f /etc/lsb-release ] ; then
|
||||
DIST="`cat /etc/lsb-release | grep DISTRIB_ID | cut -d "=" -f2`"
|
||||
REV="`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d "=" -f2`"
|
||||
LSB_DIST="`cat /etc/lsb-release | grep DISTRIB_ID | cut -d "=" -f2`"
|
||||
LSB_REV="`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d "=" -f2`"
|
||||
if [ "$LSB_DIST" != "" ] ; then
|
||||
DIST=$LSB_DIST
|
||||
REV=$LSB_REV
|
||||
fi
|
||||
fi
|
||||
# OSSTR="${OS} ${DIST} ${REV}(${PSUEDONAME} ${KERNEL} ${MACH})"
|
||||
OSSTR="${DIST} ${REV}"
|
||||
|
Reference in New Issue
Block a user