mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-03-02 09:37:07 +00:00
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3.tar.gz SHA256 = 6876cf56a763fea8db1f7d76723689bcf00b76edd4124052155f74f64e2b4ed3
34 lines
461 B
Bash
Executable File
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
|