Files
Mats O Jansson b14a737a42 Commit of original mopd-2.5.3 source, downloaded from:
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3.tar.gz
SHA256 = 6876cf56a763fea8db1f7d76723689bcf00b76edd4124052155f74f64e2b4ed3
2020-10-31 23:02:29 -04:00

34 lines
461 B
Bash
Executable File

#!/bin/sh
#
# @(#) $Id: ostype,v 1.3 1996/08/06 12:17:43 moj Exp $
#
# Determine os type.
#
os="UNKNOWN"
if [ -f /usr/bin/uname ]; then
osname=`/usr/bin/uname`
if [ $osname = "AIX" ]; then
os="aix`/usr/bin/uname -v`"
fi
if [ $osname = "SunOS" ]; then
os="sunos`/usr/bin/uname -r | /usr/bin/cut -c1`"
fi
if [ $osname = "NetBSD" ]; then
os="netbsd"
fi
fi
echo $os
if [ $os = "UNKNOWN" ]; then
exit 1
else
exit 0
fi