XBMC: Difference between revisions
→OSMC Shutdown Button
Line 191:
<syntaxhighlight lang="python">
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
Line 219:
* Make files executable
chmod +x shutdown_pi.py
*Test Script:
./home/osmc/.config/shutdown_pi.py
* Auto Start as a Service
|