diff --git a/scripts/distro b/scripts/distro deleted file mode 100755 index 11fc5d5076..0000000000 --- a/scripts/distro +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash -# Detects which OS and if it is Linux then it will detect which Linux Distribution. - -OS=`uname -s` -REV=`uname -r` -MACH=`uname -m` - -if [ "${OS}" = "SunOS" ] ; then - OS=Solaris - ARCH=`uname -p` - OSSTR="${OS} ${REV}(${ARCH} `uname -v`)" - -elif [ "${OS}" = "AIX" ] ; then - OSSTR="${OS} `oslevel` (`oslevel -r`)" - -elif [ "${OS}" = "Linux" ] ; then - KERNEL=`uname -r` - - if [ -f /etc/redhat-release ] ; then - DIST=$(cat /etc/redhat-release | awk '{print $1}') - if [ "${DIST}" = "CentOS" ]; then - DIST="CentOS" - elif [ "${DIST}" = "Mandriva" ]; then - DIST="Mandriva" - PSEUDONAME=`cat /etc/mandriva-release | sed s/.*\(// | sed s/\)//` - REV=`cat /etc/mandriva-release | sed s/.*release\ // | sed s/\ .*//` - else - DIST="RedHat" - fi - - PSEUDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//` - REV=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//` - - elif [ -f /etc/mandrake-release ] ; then - DIST='Mandrake' - PSEUDONAME=`cat /etc/mandrake-release | sed s/.*\(// | sed s/\)//` - REV=`cat /etc/mandrake-release | sed s/.*release\ // | sed s/\ .*//` - - elif [ -f /etc/debian_version ] ; then - DIST="Debian `cat /etc/debian_version`" - REV="" - - elif [ -f /etc/gentoo-release ] ; then - DIST="Gentoo" - REV=$(tr -d '[[:alpha:]]'