#!/bin/sh # # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # # if [ -f /etc/aurora-release ]; then case `rpm -q fedora-release` in fedora-release-2.0*) echo al2;; *) echo Unknown;; esac elif [ -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 > /dev/null; then case `rpm -q centos-release` in centos-release-3*) echo rhel3;; centos-release-4*) echo rhel4;; centos-release-5*) echo rhel5;; *) echo Unknown;; esac else case `rpm -q redhat-release` in redhat-release-4*) echo rhel4;; redhat-release-5*) echo rhel5;; redhat-release-7*) echo rh7x;; redhat-release-8*) echo rh80;; redhat-release-9-*) echo rh90;; *) echo Unknown;; esac fi fi exit 0