target 604 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # Figure out the OS name if possible.
  3. #
  4. # Hacked into existence by Larry McVoy (lm@sun.com now lm@sgi.com).
  5. # Copyright (c) 1994 Larry McVoy. GPLed software.
  6. # $Id$
  7. case `uname -s` in
  8. *HP-UX*) echo hpux;;
  9. *Linux*) echo linux;;
  10. *IRIX*) echo irix;;
  11. *AIX*) echo aix;;
  12. BSD/OS) echo bsdi;;
  13. *BSD*) echo bsd;;
  14. *OSF1*) echo osf1;;
  15. *ULTRIX*) echo ultrix;;
  16. *SunOS*) case `uname -r` in
  17. 4*) echo sunos;;
  18. 5*) echo solaris;;
  19. *) echo unknown;;
  20. esac;;
  21. *) echo unknown;;
  22. esac
  23. exit 0