source: flair-bin/trunk/tools/scripts/dualshock3.sh @ 24

Last change on this file since 24 was 24, checked in by Bayard Gildas, 4 years ago

Casse

  • Property svn:executable set to *
File size: 473 bytes
Line 
1#! /bin/bash
2ARCH_DIR=$(uname -m)
3
4# $1 is the drone ip
5if [ "$#" -ne 1 ] ; then
6  echo "Usage: $0 drone_ip_address"
7  exit 1
8fi
9
10. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
11
12#we must run as root
13if [ $EUID -ne 0 ]; then
14  exec sudo -E $0 $*
15fi
16
17export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
18${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/dualshock3 -a ${1}:20000 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.xml
Note: See TracBrowser for help on using the repository browser.