#
# /etc/cron.d/LE880-etc-crond
#

#
# run configCleaner incase update
# &>/dev/null
@reboot root /home/pi/LE880-Profile-T/scripts/LE880cleanStart.sh &> /home/pi/LE880-Profile-T/LOG/LE880cleanStart.sh.log
# &>/dev/null
#
# Fix Raspberry pi 4 autonegotiation with daughterboard
#

#@reboot root /sbin/ethtool --change eth0 advertise 0x00F

#
# run LE880node.sh as pi
#
@reboot pi /home/pi/LE880-Profile-T/scripts/LE880node.sh

#
# remove /home/pi/.asoundrc created by WM8960 driver
#
@reboot root /home/pi/LE880-Profile-T/scripts/LE880-rm-asound.sh &>/dev/null
# >> /home/pi/LE880-Profile-T/LOG/LE880-rm-asound.sh.log 2>&1

#
# keep only the most recent lines in /home/pi/LE880-Profile-T/LOG/*.log files
#
5 * * * * root /home/pi/LE880-Profile-T/scripts/LE880-tmp-log-recent.sh &>/dev/null
# >> /home/pi/LE880-Profile-T/LOG/LE880-tmp-log-recent.sh.log 2>&1

#
# keep only last 3 minutes of audio in /home/pi/LE880-Profile-T/alertBuf
#
* * * * * pi /home/pi/LE880-Profile-T/scripts/LE880alertBuf.sh &>/dev/null
# >> /home/pi/LE880-Profile-T/LOG/LE880alertBuf.sh.log 2>&1

#
# shutdown and reboot every sunday at 1:10 plus a random sleep range
#
#SHELL=/bin/bash
#10 1 * * 7 root sleep ${RANDOM:0:2}m ; sudo /sbin/shutdown -r

# shutdown and reboot every day at 1:10 plus a random sleep range
#
#SHELL=/bin/bash
#10 1 * * * root sleep ${RANDOM:0:2}m ; sudo /sbin/shutdown -r

#
# shutdown and reboot every day at 1:10 am (see /var/log/syslog)
#
10 1 * * * root /sbin/shutdown -r

#
# test shutdown and reboot every 3 minutes (see /var/log/syslog)
#
#*/3 * * * * root /sbin/shutdown -r
