source: flair-bin/trunk/tools/scripts/launch_flairgcs.sh@ 52

Last change on this file since 52 was 25, checked in by Sanahuja Guillaume, 9 years ago

modifs case

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