Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
S98exit-emu-1b
#!/bin/bash
case "$1" in
start)
echo "Starting button"
/recalbox/scripts/rpi-exit-emu-1b.py & &> /dev/null
;;
stop)
echo "Stopping button"
killall -9 rpi-exit-emu-1b.py &> /dev/null
;;
restart)
echo "Stopping button"
killall -9 rpi-exit-emu-1b.py &> /dev/null
echo "Starting button"
/recalbox/scripts/rpi-exit-emu-1b.py & &> /dev/null
;;
*)
echo "Usage: /etc/init.d/S98exit-emu-1b {start|stop|restart}"
exit 1
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment