#!/bin/sh

UNAME=`uname -s`

# OS tweaks

if [ "$UNAME" = "SunOS" ]; then
  UNAME=`uname -sr | sed -e 's/ /-/g'`
  if [ "$UNAME" = "SunOS-4.1.3_U1" ]; then
    UNAME=SUNOS4
  else
    PROCESSOR=`uname -p`
    if [ "$PROCESSOR" = "i386" ]; then
      UNAME=SOLARISx86
    else
      UNAME=SOLARIS
    fi
  fi

elif [ "$UNAME" = "HP-UX" ]; then
  UNAME=HPUX

elif [ "$UNAME" = "BSD/386" ]; then
  UNAME=BSDI

elif [ "$UNAME" = "SCO_SV" ]; then
  UNAME=SCO

elif [ "$UNAME" = "UNIX_SV" ]; then
  UNAME=UNIXWARE

elif [ "$UNAME" = "NEWS-OS" ]; then
  UNAME=SONY

elif [ "$UNAME" = "3430-001" ]; then
  UNAME=NCRSVR4

elif [ "$UNAME" = "UNIX_System_V" ]; then
  UNAME=NECSVR4
fi

case "$UNAME" in
SINIX*|ReliantUNIX*)
  UNAME="ReliantUNIX" ;;
esac


echo $UNAME
