#!/bin/sh
if [ -f /etc/fedora-release ]; then
   case `rpm -q fedora-release` in
      fedora-release-1*) echo fc1;;
      *) echo Unknown;;
   esac
elif [ -f /etc/whitebox-release ]; then
   case `rpm -q whitebox-release` in
     whitebox-release-3*) echo rhel3;;
     whitebox-release-4*) echo rhel4;;
     *) echo Unknown;;
   esac
elif [ -f /etc/redhat-release ]; then
   if [ `rpm -q centos-release` ]; then
     case `rpm -q centos-release` in
       centos-release-3*) echo rhel3;;
       centos-release-4*) echo rhel4;;
       *) echo Unknown;;
     esac
   else
     case `rpm -q redhat-release` in
       redhat-release-7*) echo rh7x;;
       redhat-release-8*) echo rh80;;
       redhat-release-9-*) echo rh90;;
       *) echo Unknown;;
     esac
   fi
fi
exit 0
