|
@@ -26,10 +26,11 @@ export LD_LIBRARY_PATH="/usr/lib/libreoffice/program${LD_LIBRARY_PATH:+:${LD_LIB
|
|
|
# Configure joystick interposer
|
|
# Configure joystick interposer
|
|
|
export SELKIES_INTERPOSER='/usr/$LIB/selkies_joystick_interposer.so'
|
|
export SELKIES_INTERPOSER='/usr/$LIB/selkies_joystick_interposer.so'
|
|
|
export LD_PRELOAD="${SELKIES_INTERPOSER}${LD_PRELOAD:+:${LD_PRELOAD}}"
|
|
export LD_PRELOAD="${SELKIES_INTERPOSER}${LD_PRELOAD:+:${LD_PRELOAD}}"
|
|
|
-export SDL_JOYSTICK_DEVICE=/dev/input/js0
|
|
|
|
|
mkdir -pm1777 /dev/input || sudo-root mkdir -pm1777 /dev/input || echo 'Failed to create joystick interposer directory'
|
|
mkdir -pm1777 /dev/input || sudo-root mkdir -pm1777 /dev/input || echo 'Failed to create joystick interposer directory'
|
|
|
touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || sudo-root touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || echo 'Failed to create joystick interposer devices'
|
|
touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || sudo-root touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || echo 'Failed to create joystick interposer devices'
|
|
|
chmod 777 /dev/input/js* || sudo-root chmod 777 /dev/input/js* || echo 'Failed to change permission for joystick interposer devices'
|
|
chmod 777 /dev/input/js* || sudo-root chmod 777 /dev/input/js* || echo 'Failed to change permission for joystick interposer devices'
|
|
|
|
|
+touch /dev/input/event1000 /dev/input/event1001 /dev/input/event1002 /dev/input/event1003 || sudo-root touch /dev/input/event1000 /dev/input/event1001 /dev/input/event1002 /dev/input/event1003 || echo 'Failed to create joystick interposer event devices'
|
|
|
|
|
+chmod 777 /dev/input/event* || sudo-root chmod 777 /dev/input/event* || echo 'Failed to change permission for joystick interposer event devices'
|
|
|
|
|
|
|
|
# Set default display
|
|
# Set default display
|
|
|
export DISPLAY="${DISPLAY:-:20}"
|
|
export DISPLAY="${DISPLAY:-:20}"
|