Skip to content

Instantly share code, notes, and snippets.

@DjLeChuck
Created February 8, 2017 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DjLeChuck/5f798b0d4af4071a92111bf61703aeb1 to your computer and use it in GitHub Desktop.
Save DjLeChuck/5f798b0d4af4071a92111bf61703aeb1 to your computer and use it in GitHub Desktop.
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