notes/NES gamepad controller setup for raspbmc-nwY7uqfg.sh
#!/bin/bash

#By Kris Occhipinti
#http://filmsbykris.com

#GPLv3

#September 2014
#kills xbmc and installs/starts NES emulator
#grabs ROMS from web and sets up controllers

sudo initctl stop xbmc
sudo modprobe snd_bcm2835


clear
echo "setting up gamepad 1"
sleep 2
wget "http://download.freeroms.com/nes_roms/08/super_mario_bros._+_duck_hunt.zip" -O /tmp/rom.zip && 
aoss fceu -inputcfg gamepad1 /tmp/rom.zip

clear
echo "setting up gamepad 2"
sleep 2
aoss fceu -inputcfg gamepad2 /tmp/rom.zip

echo "Thanks for playing!!!"
echo "Good Bye!!!"


sudo initctl start xbmc

syntax highlighted by Code2HTML, v. 0.9.1