Last change
on this file since 53 was 28, checked in by Bayard Gildas, 8 years ago |
Renaming of dualshock3 scripts
|
-
Property svn:executable
set to
*
|
File size:
588 bytes
|
Rev | Line | |
---|
[18] | 1 | #! /bin/bash
|
---|
| 2 | ARCH_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
|
---|
| 10 | if [ $EUID -ne 0 ]; then
|
---|
| 11 | exec sudo -E $0 $*
|
---|
| 12 | fi
|
---|
| 13 |
|
---|
[28] | 14 | . ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
|
---|
| 15 |
|
---|
[18] | 16 | export 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.