Advertisement
metalx1000

NES gamepad controller setup for raspbmc

Sep 6th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. #By Kris Occhipinti
  3. #http://filmsbykris.com
  4. #GPLv3
  5. #September 2014
  6. #kills xbmc and installs/starts NES emulator
  7. #grabs ROMS from web and sets up controllers
  8.  
  9. sudo initctl stop xbmc
  10. sudo modprobe snd_bcm2835
  11.  
  12. clear
  13. echo "setting up gamepad 1"
  14. sleep 2
  15. wget "http://download.freeroms.com/nes_roms/08/super_mario_bros._+_duck_hunt.zip" -O /tmp/rom.zip &&
  16. aoss fceu -inputcfg gamepad1 /tmp/rom.zip
  17.  
  18. clear
  19. echo "setting up gamepad 2"
  20. sleep 2
  21. aoss fceu -inputcfg gamepad2 /tmp/rom.zip
  22.  
  23. echo "Thanks for playing!!!"
  24. echo "Good Bye!!!"
  25.  
  26.  
  27. sudo initctl start xbmc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement