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

Last change on this file was 89, checked in by Sanahuja Guillaume, 5 years ago

use new arch dir

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