Created
February 8, 2017 08:07
-
-
Save DjLeChuck/5f798b0d4af4071a92111bf61703aeb1 to your computer and use it in GitHub Desktop.
S98exit-emu-1b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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