a12f271998-01-10Fredrik Hübinette (Hubbe) #!/bin/sh . $NTTOOLS M=no N=no S=no
465c5d1998-10-21Marcus Comstedt P=no
a12f271998-01-10Fredrik Hübinette (Hubbe) 
3f93431998-01-14Fredrik Hübinette (Hubbe) for a in "$@"
a12f271998-01-10Fredrik Hübinette (Hubbe) do case "$a" in --version) echo "Fake NT uname version 1.0 by Fredrik Hubinette" exit 0 ;; --help)
465c5d1998-10-21Marcus Comstedt  echo "Usage: uname [-a] [-m] [-n] [-p] [-r] [-s] [-v]"
a12f271998-01-10Fredrik Hübinette (Hubbe)  exit 0 ;;
465c5d1998-10-21Marcus Comstedt  --all) M=yes ; N=yes ; S=yes ; P=yes ;;
a12f271998-01-10Fredrik Hübinette (Hubbe)  --machine) M=yes ;; --nodename) N=yes ;; --sysname) S=yes ;;
465c5d1998-10-21Marcus Comstedt  --processor) P=yes ;;
a12f271998-01-10Fredrik Hübinette (Hubbe)  --*) echo "Unknown option $a" exit 1 ;; -*) case "$a" in *m*) M=yes ;; esac case "$a" in *n*) N=yes ;; esac
465c5d1998-10-21Marcus Comstedt  case "$a" in *p*) P=yes ;; esac
a12f271998-01-10Fredrik Hübinette (Hubbe)  case "$a" in *s*) S=yes ;; esac case "$a" in *a*) M=yes ; N=yes ; S=yes ;; esac ;; esac done
465c5d1998-10-21Marcus Comstedt if [ $M$N$S$P = nononono ]; then
a12f271998-01-10Fredrik Hübinette (Hubbe)  S=yes fi OUTPUT= if [ $S = yes ]; then
a1ad681998-01-16Fredrik Hübinette (Hubbe)  OUTPUT="$OUTPUT Windows_NT" # OUTPUT="$OUTPUT `getntenv OS`"
a12f271998-01-10Fredrik Hübinette (Hubbe) fi if [ $N = yes ]; then OUTPUT="$OUTPUT $NTHOST" fi if [ $M = yes ]; then OUTPUT="$OUTPUT `getntenv PROCESSOR_ARCHITECTURE`" fi
465c5d1998-10-21Marcus Comstedt if [ $P = yes ]; then OUTPUT="$OUTPUT `getntenv PROCESSOR_ARCHITECTURE`" fi
a12f271998-01-10Fredrik Hübinette (Hubbe) echo $OUTPUT exit 0