Guest User

Untitled

a guest
Sep 13th, 2020
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13.  
  14. # Print the IP address
  15. _IP=$(hostname -I) || true
  16. if [ "$_IP" ]; then
  17.   printf "My IP address is %s\n" "$_IP"
  18. fi
  19.  
  20.  
  21.  
  22. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  23.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_C4F49368-event-joystick \
  24.     --silent \
  25.     --detach-kernel-driver \
  26.     --force-feedback \
  27.     --deadzone-trigger 15% \
  28.     --deadzone 4000 \
  29.     --mimic-xpad \
  30.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  31.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  32.     &
  33.  
  34. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  35.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_B1C3D933-event-joystick \
  36.     --silent \
  37.     --detach-kernel-driver \
  38.     --force-feedback \
  39.     --deadzone-trigger 15% \
  40.     --deadzone 4000 \
  41.     --mimic-xpad \
  42.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  43.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  44.     &
  45.  
  46. exit 0
  47.  
RAW Paste Data