root/wrappers/uname

Revision 05795904d6e32eb0d5ee2dffab774a52bbefaff0, 356 bytes (checked in by Ɓukasz 'Sil2100' Zemczak <sil2100@asn.pl>, 7 years ago)

When FB_OFF use host system uname.

  • Property mode set to 100755
Line 
1 #!/bin/sh
2
3 if [ "$FB_OFF" = "1" ]; then exec "/bin/uname" "$@"; fi
4
5 option="$1"
6 set -- $FB_UNAME
7
8 case "$option" in
9     "") echo "$1";;
10     -a) echo "$*";;
11     -m) echo "${11}";;
12     -n) echo "$2";;
13     -r) echo "$3";;
14     -s) echo "$1";;
15     -p) echo "${12}";;
16     -v) echo "$4 $5 $6 $7 $8 $9 ${10}";;
17     *) echo "uname-wrapper: unknown option: $option" >&2; exit 1;;
18 esac
19
20 exit 0
Note: See TracBrowser for help on using the browser.