XBMC: Difference between revisions

18 bytes added ,  4 years ago
Line 183:
 
*Install Raspberry Pi Tools from CLI:
sudo suapt update
sudo apt-get install python-pip python-dev gcc python-setuptools wheel
apt-get update
apt-get install python-pip python-dev gcc python-setuptools wheel
pip install rpi.gpio
 
Line 219 ⟶ 218:
 
* Make files executable
sudo chmod +x shutdown_pi.py
 
*Test Script:
Line 227 ⟶ 226:
 
Create systemd service file:
sudo nano /lib/systemd/system/shutdownpi.service
 
<pre>
Line 242 ⟶ 241:
 
Enable the service:
sudo systemctl enable shutdownpi
 
Start the service:
sudo systemctl start shutdownpi
 
 
* Enable UART for the Status LED:
sudo nano /boot/config.txt
enable_uart=1