source: wrappers/uname

Last change on this file was 0579590, checked in by Łukasz 'Sil2100' Zemczak <sil2100@…>, 9 years ago

When FB_OFF use host system uname.

  • Property mode set to 100755
File size: 356 bytes
Line 
1#!/bin/sh
2
3if [ "$FB_OFF" = "1" ]; then exec "/bin/uname" "$@"; fi
4
5option="$1"
6set -- $FB_UNAME
7
8case "$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;;
18esac
19
20exit 0
Note: See TracBrowser for help on using the repository browser.