- Added support for CentOS.

git-svn-id: http://www.observium.org/svn/observer/trunk@1038 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Geert Hauwaerts
2010-03-20 22:51:26 +00:00
parent 6a2688abe1
commit 26bc8edda5

View File

@@ -19,7 +19,12 @@ GetVersionFromFile()
elif [ "${OS}" = "Linux" ] ; then
KERNEL=`uname -r`
if [ -f /etc/redhat-release ] ; then
DIST='RedHat'
DIST=$(cat /etc/redhat-release | awk '{print $1}')
if [ "${DIST}" = "CentOS" ]; then
DIST="CentOS"
else
DIST="RedHat"
fi
PSUEDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//`
REV=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//`
elif [ -f /etc/SuSE-release ] ; then