Update cron-and-profile
This commit is contained in:
parent
bce7dc7541
commit
b17c2dbe2c
|
@ -0,0 +1,11 @@
|
||||||
|
#PROFILE
|
||||||
|
|
||||||
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||||
|
echo "SSH Connection, skipping FBI"
|
||||||
|
else
|
||||||
|
sudo /usr/bin/fbi -T 1 -d /dev/fb0 -noverbose -t 60 -cachemem 0 /home/pi/sunflower/latest.jpg /home/pi/sunflower/latest-1.jpg /home/pi/sunflower/latest-2.jpg
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#CRON
|
||||||
|
*/10 * * * * /bin/bash /home/pi/sunflower/sunflower.sh > /dev/null
|
Loading…
Reference in New Issue