Changeset 28 in flair-bin for trunk/tools/scripts/dualshock3.sh


Ignore:
Timestamp:
Jul 21, 2016, 5:04:30 PM (5 years ago)
Author:
Bayard Gildas
Message:

Renaming of dualshock3 scripts

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/tools/scripts/dualshock3.sh

    r27 r28  
    22ARCH_DIR=$(uname -m)
    33
    4 # $1 is the drone ip
    5 if [ "$#" -ne 1 ] ; then
    6   echo "Usage: $0 drone_ip_address"
    7   exit 1
    8 fi
    9 
    10 . ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
     4#This script is the only one that calls itself with sudo.
     5#As a consequence, only one exception is needed in sudoers (the following 2 lines)
     6#  Defaults!/opt/flair/flair-bin/tools/scripts/dualshock3.sh setenv
     7#  uav ALL=(root) /opt/flair/flair-bin/tools/scripts/dualshock3.sh
    118
    129#we must run as root
     
    1512fi
    1613
     14. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
     15
    1716export 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
     17${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/dualshock3 $*
Note: See TracChangeset for help on using the changeset viewer.