add: script to restart run.py and pigpiod, example rc.local

This commit is contained in:
bernis
2017-03-03 16:51:19 +01:00
parent 9a484fa85d
commit a36df6973e
4 changed files with 37 additions and 4 deletions

10
restart.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
while true; do
su - pi -c 'cd /home/pi/baroness && FRAMEBUFFER=/dev/fb1 startx ./run.py'
now=$(date)
echo "Current time : $now" >> restart.log
killall pigpiod
sleep 5
pigpiod
sleep 5
done