2 if [ -f /etc
/aurora-release
]; then
3 case `rpm -q fedora-release` in
4 fedora-release-2.0
*) echo al2
;;
7 elif [ -f /etc
/fedora-release
]; then
8 case `rpm -q fedora-release` in
9 fedora-release-1
*) echo fc1
;;
12 elif [ -f /etc
/whitebox-release
]; then
13 case `rpm -q whitebox-release` in
14 whitebox-release-3
*) echo rhel3
;;
15 whitebox-release-4
*) echo rhel4
;;
18 elif [ -f /etc
/redhat-release
]; then
19 if rpm
-q centos-release
> /dev
/null
; then
20 case `rpm -q centos-release` in
21 centos-release-3
*) echo rhel3
;;
22 centos-release-4
*) echo rhel4
;;
23 centos-release-5
*) echo rhel5
;;
27 case `rpm -q redhat-release` in
28 redhat-release-4
*) echo rhel4
;;
29 redhat-release-5
*) echo rhel5
;;
30 redhat-release-7
*) echo rh7x
;;
31 redhat-release-8
*) echo rh80
;;
32 redhat-release-9-
*) echo rh90
;;