Last change
on this file since 57 was 25, checked in by Sanahuja Guillaume, 9 years ago |
modifs case
|
-
Property svn:executable
set to
*
|
File size:
549 bytes
|
Rev | Line | |
---|
[7] | 1 | #! /bin/sh
|
---|
| 2 | ARCH_DIR=$(uname -m)
|
---|
| 3 |
|
---|
| 4 | #defaults options values
|
---|
| 5 | PORT=9000
|
---|
| 6 | NAME="FlairGCS"
|
---|
| 7 |
|
---|
| 8 | usage() {
|
---|
| 9 | USAGE="usage: $0 [-n name] [-p port] [-?]|[-h]"
|
---|
| 10 | echo $USAGE;
|
---|
| 11 | exit 1
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | while getopts h?n:p: OPT; do
|
---|
| 15 | case $OPT in
|
---|
| 16 | n) NAME=$OPTARG;;
|
---|
| 17 | p) PORT=$OPTARG;;
|
---|
| 18 | h|\?) usage;;
|
---|
| 19 | esac
|
---|
| 20 | done
|
---|
| 21 | shift `expr $OPTIND - 1`
|
---|
| 22 |
|
---|
| 23 | #bail out in case unknown options remain
|
---|
| 24 | [ "$1" = "--" ] && usage
|
---|
| 25 |
|
---|
| 26 | export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
|
---|
[25] | 27 | ${FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}/unix/flairgcs -n $NAME -p $PORT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.