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

Last change on this file since 33 was 28, checked in by Bayard Gildas, 8 years ago

Renaming of dualshock3 scripts

  • Property svn:executable set to *
File size: 588 bytes
Line 
1#! /bin/bash
2ARCH_DIR=$(uname -m)
3
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
8
9#we must run as root
10if [ $EUID -ne 0 ]; then
11 exec sudo -E $0 $*
12fi
13
14. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
15
16export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
17${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/dualshock3 $*
Note: See TracBrowser for help on using the repository browser.