if [ "$DISPLAY" == "" ] && { "$SSH_CLIENT" == "" ] && [ "$SSH_TTY" == "" ]; then
cd /home/pi/pimame/pimame-web-frontend/; sudo gunicorn app:app -b 0.0.0.0:80 &
sudo xboxdrv --detach-kerneldriver --silent --wid 0 --config /home/pi/pimame/config/xboxdrv_mapping.cfg --dbus session &
sleep 1
sudo xboxdrv --detach-kerneldriver --silent --wid 1 --config /home/pi/pimame/config/xboxdrv_mapping.cfg --dbus session &
cd /home/pi/pimame/pimame-menu/
python launchmenu.py
fi
xboxdrv --trigger-as-button --wid 0 --led 1 --silent --config /home/pi/pimame/config/xboxdrv_mapping.cfg &
sleep 1
xboxdrv --trigger-as-button --wid 1 --led 2 --silent --config /home/pi/pimame/config/xboxdrv_mapping.cfg &
It looks like you're new here. If you want to get involved, click one of these buttons!