DISTNAME=redhat
elif test -f /etc/redhat-release
then
- if test `grep CentOs /etc/redhat-release`
+ if grep -q CentOS /etc/redhat-release
then
- DISTNAME=redhat
- else
DISTNAME=centos
+ else
+ DISTNAME=redhat
fi
elif test -f /etc/gentoo-release
then
fi
if test `cat $f | grep release |\
cut -f 3 -d ' '`x = "Enterprise"x ; then
- DISTVER="Enterprise "`cat $f | grep release |\
- cut -f 6 -d ' '`
+ DISTVER="RHEL "`cat $f | grep release | cut -f 6 -d ' '`
else
DISTVER=`cat /etc/redhat-release | grep release |\
cut -f 5 -d ' '`