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

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

Renaming of dualshock3 scripts

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