summaryrefslogtreecommitdiffstats
path: root/package/gnuconfig/uname
diff options
context:
space:
mode:
Diffstat (limited to 'package/gnuconfig/uname')
-rwxr-xr-xpackage/gnuconfig/uname9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/gnuconfig/uname b/package/gnuconfig/uname
new file mode 100755
index 000000000..4d2b55d52
--- /dev/null
+++ b/package/gnuconfig/uname
@@ -0,0 +1,9 @@
+#!/bin/sh
+# uname(1) simulator, inspired by Pavel Roskin.
+
+[ $# -ne 1 ] && exec sh $0 -s
+[ $1 = -m ] && echo 4400
+[ $1 = -r ] && echo 4.0
+[ $1 = -s ] && echo iainfo2
+[ $1 = -v ] && echo 3.0
+[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI"