source: flair-src/trunk/tools/VrpnLite/resources/core2-64/vrpnlite.sh@ 308

Last change on this file since 308 was 308, checked in by Sanahuja Guillaume, 6 years ago

add vrpnlite tool

  • Property svn:executable set to *
File size: 659 bytes
Line 
1#! /bin/bash
2#ARCH_DIR=$(uname -m)
3ARCH_DIR=core2-64
4
5#This script is the only one that calls itself with sudo.
6#As a consequence, only one exception is needed in sudoers (the following 2 lines)
7# Defaults!/opt/flair/flair-bin/tools/scripts/dualshock3.sh setenv
8# uav ALL=(root) /opt/flair/flair-bin/tools/scripts/dualshock3.sh
9
10#we must run as root
11if [ $EUID -ne 0 ]; then
12 exec sudo -E $0 $*
13fi
14
15. ${FLAIR_ROOT}/flair-src/scripts/ubuntu_cgroup_hack.sh
16
17export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
18${FLAIR_ROOT}/flair-install/bin/tools/$ARCH_DIR/vrpnlite -p 9000 -x vrpnlite.xml -s 127.0.0.1:3883 -c 127.0.0.1:3884
Note: See TracBrowser for help on using the repository browser.