notes/Download and play NES ROM on Raspbmc Raspberry Pi-deZJNLm6.sh
#!/bin/bash
#By Kris Occhipinti
#http://filmsbykris.com
#GPLv3
#Aug 2014
#kills xbmc and installs/starts NES emulator
#grabs ROMS from web
sudo initctl stop xbmc
sudo modprobe snd_bcm2835
if [ -f "/usr/games/fceu" ];
then
echo "Emulator is installed."
else
echo "Installing Emulator."
sudo apt-get install fceu alsa alsa-oss ca-certificates xorg icewm
fi
url="$1"
echo "Getting Game..."
wget "$url" -O /tmp/rom.zip && aoss fceu /tmp/rom.zip
rm /tmp/rom.zip
echo "Thanks for playing!!!"
echo "Good Bye!!!"
sudo initctl start xbmc
whoami
syntax highlighted by Code2HTML, v. 0.9.1