diff options
Diffstat (limited to 'package/gnuconfig/testsuite/uname.in')
-rwxr-xr-x | package/gnuconfig/testsuite/uname.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/gnuconfig/testsuite/uname.in b/package/gnuconfig/testsuite/uname.in new file mode 100755 index 000000000..d44d15f04 --- /dev/null +++ b/package/gnuconfig/testsuite/uname.in @@ -0,0 +1,9 @@ +#!/bin/sh +# uname(1) simulator, inspired by Pavel Roskin. + +[ $# -ne 1 ] && exec sh $0 -s +[ $1 = -m ] && echo "@MACHINE@" && exit 0 +[ $1 = -r ] && echo "@RELEASE@" && exit 0 +[ $1 = -s ] && echo "@SYSTEM@" && exit 0 +[ $1 = -v ] && echo "@VERSION@" && exit 0 +[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI" |