2 # simple BSD-like uname replacement for those systems without it
4 # Copyright (c) 1995 The Regents of the University of Michigan
9 # if /bin/uname or /usr/bin/uname exists, just use it
10 # ...unless we are on SCO, where the provided uname is bad
12 if [ ! -f /usr/bin/swconfig ]; then
13 if [ -f /bin/uname ]; then
17 if [ -f /usr/bin/uname ]; then
18 exec /usr/bin/uname $*
24 # flags to keep track of what to output
33 USAGE="usage: $0 [-s] [-v] [-r]"
56 # print system name by default
58 if [ $PRINT_VERSION = "0" -a $PRINT_RELEASE = "0" ]; then
64 # default to unknown everything...
66 SYSTEM="Unknown-System"
67 VERSION="Unknown-Version"
68 RELEASE="Unknown-Release"
71 # check to see if we are on a machine that runs NextSTEP or SCO
73 if [ -r /NextApps ]; then
75 elif [ -f /usr/bin/swconfig ]; then
81 # output requested information
84 if [ $PRINT_SYSTEM = "1" ]; then
89 if [ $PRINT_VERSION = "1" ]; then
90 if [ $OUTPUT = "1" ]; then
98 if [ $PRINT_RELEASE = "1" ]; then
99 if [ $OUTPUT = "1" ]; then