# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ "$DISPLAY" == "" ] && [ "$SSH_CLIENT" == "" ] && [ "$SSH_TTY" == "" ]; then
sudo xboxdrv --silent --config /home/pi/pimame/config/xboxdrv_mapping.cfg --dbus
cd /home/pi/pimame/pimame-menu/
python launchmenu.py
fi
#
in front of these two lines so that they look like this:#cd /home/pi/pimame/pimame-menu/
#python launchmenu.py
sudo nano /usr/bin/piplay
#!/bin/bash
cd /home/pi/pimame/pimame-menu/
python launchmenu.py
sudo chmod +x /usr/bin/piplay
piplay
in the command line It looks like you're new here. If you want to get involved, click one of these buttons!