source: flair-bin/tags/0.0.1/tools/scripts/launch_FlairGCS.sh

Last change on this file was 7, checked in by Sanahuja Guillaume, 8 years ago

m

  • Property svn:executable set to *
File size: 547 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.