Update cron-and-profile

This commit is contained in:
James 2022-01-31 13:11:40 +11:00 committed by GitHub
parent bce7dc7541
commit b17c2dbe2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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